Skip to content

Commit

Permalink
misc: remove Q_strrchr (ioq3), refs #31
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform authored and JanSimek committed Apr 2, 2013
1 parent c6507d5 commit 550be7d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion src/client/snd_main.c
Expand Up @@ -532,7 +532,7 @@ void S_Play_f(void)

for (i = 1; i < c; i++)
{
if (!Q_strrchr(Cmd_Argv(i), '.'))
if (!strrchr(Cmd_Argv(i), '.'))
{
//Com_sprintf(name, sizeof(name), "%s.wav", Cmd_Argv(1)); // genuine ET 'forces' wav
Com_Printf("Warning: S_Play_f sound name '%s' has no file extension", Cmd_Argv(i));
Expand Down
24 changes: 0 additions & 24 deletions src/qcommon/q_shared.c
Expand Up @@ -954,30 +954,6 @@ int Q_isforfilename(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;
}

#ifdef _MSC_VER
/*
=============
Expand Down
1 change: 0 additions & 1 deletion src/qcommon/q_shared.h
Expand Up @@ -998,7 +998,6 @@ int Q_strncmp(const char *s1, const char *s2, int n);
int Q_stricmpn(const char *s1, const char *s2, int n);
char *Q_strlwr(char *s1);
char *Q_strupr(char *s1);
char *Q_strrchr(const char *string, int c);
const char *Q_stristr(const char *s, const char *find);

#ifdef _WIN32
Expand Down

0 comments on commit 550be7d

Please sign in to comment.