mirror of https://github.com/ioquake/ioq3.git
Make bg_lib.c strchr ANSI-C conformant
This commit is contained in:
parent
716caf396e
commit
315632e821
|
@ -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 New Issue