Make bg_lib.c strchr ANSI-C conformant

This commit is contained in:
Thilo Schulz 2011-05-14 14:55:54 +00:00
parent 716caf396e
commit 315632e821
1 changed files with 5 additions and 1 deletions

View File

@ -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 ) {