---
name: "strnlen_user"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/strnlen_user"
---

# strnlen\_user(9)

Get the size of a string in user space.

## NAME

strnlen\_user - Get the size of a string in user space.

## SYNOPSIS

**long strnlen\_user(const char \_\_user \*** *s***, long** *n***);**

## ARGUMENTS

*s*

The string to measure.

*n*

The maximum valid length

## DESCRIPTION

Get the size of a NUL-terminated string in user space.

Returns the size of the string INCLUDING the terminating NUL. On exception, returns 0. If the string is too long, returns a value greater than *n*.

## COPYRIGHT
