FUNCTION::STRTOL(3stap) A collection of standard strin FUNCTION::STRTOL(3stap)

# [NAME](#NAME)

function::strtol - strtol - Convert a string to a long

# [SYNOPSIS](#SYNOPSIS)

```


    strtol:long(str:string,base:long)
```

# [ARGUMENTS](#ARGUMENTS)

*str*

string to convert

*base*

the base to use

# [DESCRIPTION](#DESCRIPTION)

This function converts the string representation of a number to an integer. The *base* parameter indicates the number base to assume for the string (eg. 16 for hex, 8 for octal, 2 for binary).

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::string*(3stap)](/man/enterprise-packages/systemtap/tapset::string.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::strtol(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
