mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-17 17:31:08 +00:00
Make bg_lib.c strchr ANSI-C conformant
This commit is contained in:
parent
716caf396e
commit
315632e821
1 changed files with 5 additions and 1 deletions
|
@ -237,7 +237,11 @@ char *strchr( const char *string, int c ) {
|
||||||
}
|
}
|
||||||
string++;
|
string++;
|
||||||
}
|
}
|
||||||
return (char *)0;
|
|
||||||
|
if(c)
|
||||||
|
return NULL;
|
||||||
|
else
|
||||||
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *strstr( const char *string, const char *strCharSet ) {
|
char *strstr( const char *string, const char *strCharSet ) {
|
||||||
|
|
Loading…
Reference in a new issue