projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
pass port numbers around in network order
[unix-history]
/
usr
/
src
/
lib
/
libc
/
string
/
strcmp.c
/* @(#)strcmp.c 4.1 (Berkeley) %G% */
/*
* Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
*/
strcmp
(
s1
,
s2
)
register
char
*
s1
, *
s2
;
{
while
(*
s1
== *
s2
++)
if
(*
s1
++==
'\0'
)
return
(
0
);
return
(*
s1
- *--
s2
);
}