mescc: Tinycc support: strchr.
* mlibc/libc-mes+tcc.c (strchr): Implement.
This commit is contained in:
parent
18cb982687
commit
8991e927c3
|
@ -277,7 +277,12 @@ strcat (char *dest, char const *src)
|
|||
char *
|
||||
strchr (char const *s, int c)
|
||||
{
|
||||
eputs ("strchr stub\n");
|
||||
char const *p = s;
|
||||
while (*p || !c)
|
||||
{
|
||||
if (c == *p) return p;
|
||||
*p++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue