---
name: "function::strlen"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::strlen"
---

# function::strlen(3stap)

Returns the length of a string

## NAME

function::strlen - Returns the length of a string

## SYNOPSIS

```
    strlen:long(s:string)
```

## ARGUMENTS

*s*

the string

## DESCRIPTION

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

## SEE ALSO0

[*tapset::string*(3stap)](/tapset::string/3stap.md)
