From c253917e539fa6a6196cdea8f1733b72feb30107 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 15 May 2011 14:08:03 +0000 Subject: - Remove Q_strrchr(), replace with standard, portable strrchr() - Add strrchr() to bg_lib.c, patch by DevHC --- src/qcommon/q_shared.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/qcommon/q_shared.c') diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index b4846799..ba0c5ffe 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -684,26 +684,6 @@ int Q_isalpha( int c ) return ( 0 ); } -char* Q_strrchr( const char* string, int c ) -{ - char cc = c; - char *s; - char *sp=(char *)0; - - s = (char*)string; - - while (*s) - { - if (*s == cc) - sp = s; - s++; - } - if (cc == 0) - sp = s; - - return sp; -} - qboolean Q_isanumber( const char *s ) { char *p; -- cgit