148351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California. 241975Sbostic.\" All rights reserved. 341975Sbostic.\" 441975Sbostic.\" This code is derived from software contributed to Berkeley by 5*50325Sbostic.\" Chris Torek and the American National Standards Committee X3, 6*50325Sbostic.\" on Information Processing Systems. 7*50325Sbostic.\" 841975Sbostic.\" %sccs.include.redist.man% 941975Sbostic.\" 10*50325Sbostic.\" @(#)strlen.3 5.4 (Berkeley) 06/29/91 1141975Sbostic.\" 1248351Scael.Dd 1348351Scael.Dt STRLEN 3 1448351Scael.Os 1548351Scael.Sh NAME 1648351Scael.Nm strlen 1748351Scael.Nd find length of string 1848351Scael.Sh SYNOPSIS 1948351Scael.Fd #include <string.h> 2048351Scael.Ft size_t 2148351Scael.Fn strlen "const char *s" 2248351Scael.Sh DESCRIPTION 2348351ScaelThe 2448351Scael.Fn strlen 2548351Scaelfunction 2648351Scaelcomputes the length of the string 2748351Scael.Fa s . 2848351Scael.Sh RETURN VALUES 2948351ScaelThe 3048351Scael.Fn strlen 3148351Scaelfunction 3248351Scaelreturns 3348351Scaelthe number of characters that precede the 3448351Scaelterminating 3548351Scael.Dv NUL 3648351Scaelcharacter. 3748351Scael.Sh SEE ALSO 3848351Scael.Xr string 3 3948351Scael.Sh STANDARDS 4048351ScaelThe 4148351Scael.Fn strlen 4248351Scaelfunction 4348351Scaelconforms to 4448351Scael.St -ansiC . 45