.TH strlen() "" "" "String Function (libc)"
.PC "Measure a string"
.B "#include <string.h>"
\fBint strlen(\fIstring\^\fB)\fR
\fBchar *\fIstring\^\fB;\fR
.PP
.B strlen()
measures
.IR string ,
and returns its length
in bytes, \fInot\fR including the null terminator.
This is useful in determining how much storage to allocate for a string.
.SH Example
For an example of how to use this function, see the entry for
.BR string .
.SH "See Also"
.Xr "libc," libc
.Xr "string.h" string.h
.br
\*(AS, \(sc7.11.6.3
.br
\*(PX Standard, \(sc8.1
