projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added LIBC_SCCS condition for sccs ids
[unix-history]
/
usr
/
src
/
lib
/
libc
/
string
/
strlen.c
#if defined(LIBC_SCCS) && !defined(lint)
static char
sccsid
[] =
"@(#)strlen.c 5.2 (Berkeley) %G%"
;
#endif LIBC_SCCS and not lint
/*
* Returns the number of
* non-NULL bytes in string argument.
*/
strlen
(
s
)
register
char
*
s
;
{
register
n
;
n
=
0
;
while
(*
s
++)
n
++;
return
(
n
);
}