.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "STRNLEN_USER" "" "06 October 2005" "" "" .SH NAME strnlen_user \- Get the size of a string in user space. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp long strnlen_user (const char __user * \fIs\fB, long \fIn\fB); \fR .SH "ARGUMENTS" .TP \fB\fIs\fB\fR The string to measure. .TP \fB\fIn\fB\fR The maximum valid length .SH "DESCRIPTION" .PP Get the size of a NUL-terminated string in user space. .PP 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 \fIn\fR\&.