strnlen_user9
Get the size of a string in user space.
Usage
long strnlen_user(const char __user * s, long n);
Arguments
s
The string to measure.
n
The maximum valid length
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 the string is too long, returns a value greater than n.
Releases
4 releases since Debian 4.0 (Etch); the text changed 3 times.