- Remove Q_strrchr(), replace with standard, portable strrchr()

- Add strrchr() to bg_lib.c, patch by DevHC
This commit is contained in:
Thilo Schulz committed 2011-05-15 14:08:03 +00:00
1 parent 3ddc59a3ba
commit b509d770a7
12 files changed
+27 -29

No files matched your search

+18
View File
@@ -240,6 +240,24 @@ char *strchr( const char *string, int c ) {
return (char *) string;
}
char *strrchr(const char *string, int c)
{
const char *found = 0;
while(*string)
{
if(*string == c)
found = string;
string++;
}
if(c)
return (char *) found;
else
return (char *) string;
}
char *strstr( const char *string, const char *strCharSet ) {
while ( *string ) {
int i;