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

# [NAME](#NAME)

function::strlen - Returns the length of a string

# [SYNOPSIS](#SYNOPSIS)

```


    strlen:long(s:string)
```

# [ARGUMENTS](#ARGUMENTS)

*s*

the string

# [DESCRIPTION](#DESCRIPTION)

This function returns the length of the string, which can be zero up to MAXSTRINGLEN.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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