strlen_user9
Get the size of a string in user space.
Arguments
str
The string to measure.
Context
User context only. This function may sleep.
Overview
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 there is a limit on the length of a valid string, you may wish to consider using strnlen_user instead.
History
- Debian 7 (Wheezy): the text shown here
- Debian 6.0 (Squeeze)
- Debian 5.0 (Lenny)
- Debian 4.0 (Etch)