.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:02:26 1993 by Rik Faith (faith@cs.unc.edu) .TH STRLEN 3 "April 12, 1993" "" "Linux Programmer's Manual" .SH NAME strlen \- calculate the length of a string .SH SYNOPSIS .nf .B #include .sp .BI "size_t strlen(const char *" s ); .fi .SH DESCRIPTION The \fBstrlen()\fP function calculates the length of the string \fIs\fP, not including the terminating `\\0' character. .SH "RETURN VALUE" The \fBstrlen()\fP function returns the number of characters in \fIs\fP. .SH "CONFORMING TO" SVID 3, POSIX, BSD 4.3, ISO 9899 .SH SEE ALSO .BR string (3)