mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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