projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
date and time created 80/12/21 16:40:16 by wnj
[unix-history]
/
usr
/
src
/
lib
/
libc
/
string
/
strlen.c
Commit
Line
Data
d98205b9
BJ
1
/* @(#)strlen.c 4.1 (Berkeley) %G% */
2
/*
3
* Returns the number of
4
* non-NULL bytes in string argument.
5
*/
6
7
strlen(s)
8
register char *s;
9
{
10
register n;
11
12
n = 0;
13
while (*s++)
14
n++;
15
return(n);
16
}