mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 13:11:30 +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++;
|
||||
}
|
||||
return (char *)0;
|
||||
|
||||
if(c)
|
||||
return NULL;
|
||||
else
|
||||
return string;
|
||||
}
|
||||
|
||||
char *strstr( const char *string, const char *strCharSet ) {
|
||||
|
|
Loading…
Reference in a new issue