1.\" Copyright (c) 1990, 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek. 6.\" %sccs.include.redist.man% 7.\" 8.\" @(#)strlen.3 5.3 (Berkeley) 04/19/91 9.\" 10.Dd 11.Dt STRLEN 3 12.Os 13.Sh NAME 14.Nm strlen 15.Nd find length of string 16.Sh SYNOPSIS 17.Fd #include <string.h> 18.Ft size_t 19.Fn strlen "const char *s" 20.Sh DESCRIPTION 21The 22.Fn strlen 23function 24computes the length of the string 25.Fa s . 26.Sh RETURN VALUES 27The 28.Fn strlen 29function 30returns 31the number of characters that precede the 32terminating 33.Dv NUL 34character. 35.Sh SEE ALSO 36.Xr string 3 37.Sh STANDARDS 38The 39.Fn strlen 40function 41conforms to 42.St -ansiC . 43