Initial revision
This commit is contained in:
9
lang/cem/libcc/gen/strchr.c
Normal file
9
lang/cem/libcc/gen/strchr.c
Normal file
@@ -0,0 +1,9 @@
|
||||
char *strchr(s, c)
|
||||
register char *s, c;
|
||||
{
|
||||
do {
|
||||
if (*s == c)
|
||||
return(s);
|
||||
} while (*s++ != 0);
|
||||
return(0);
|
||||
}
|
||||
Reference in New Issue
Block a user