summaryrefslogtreecommitdiff
path: root/src/game/bg_lib.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-07-29 18:43:15 +0000
committerTim Angus <tim@ngus.net>2002-07-29 18:43:15 +0000
commitc92d5d545127ef86c85607b6edb361c42bb9db68 (patch)
treeb27284244a8a5d3f0b6f51b008a51ea141d58948 /src/game/bg_lib.c
parente633284d8b8f2fd4cbc246d45f217913bdd19dd8 (diff)
* Scoreboard
* Level 1 class blob fire * Loading screen * "SPECTATOR" display uses TA UI * Buildable weapon delays * Display of build points on huds
Diffstat (limited to 'src/game/bg_lib.c')
-rw-r--r--src/game/bg_lib.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c
index 7041aa39..cd241f77 100644
--- a/src/game/bg_lib.c
+++ b/src/game/bg_lib.c
@@ -256,6 +256,22 @@ int strcmp( const char *string1, const char *string2 ) {
return *string1 - *string2;
}
+//TA:
+char *strrchr( const char *string, int c )
+{
+ int i, length = strlen( string );
+ char *p;
+
+ for( i = length - 1; i >= 0; i-- )
+ {
+ p = (char *)&string[ i ];
+
+ if( *p == c )
+ return (char *)p;
+ }
+
+ return (char *)0;
+}
char *strchr( const char *string, int c ) {
while ( *string ) {