strrchr
This commit is contained in:
parent
40fc2aa583
commit
98ffb62c34
@ -640,10 +640,10 @@ void print_usage ()
|
||||
);
|
||||
}
|
||||
|
||||
extern char *rindex(const char *s, int c);
|
||||
extern char *strrchr(const char *s, int c);
|
||||
int is_extension(char *filename, char *check_ext)
|
||||
{
|
||||
char *ext = rindex(filename, '.');
|
||||
char *ext = strrchr(filename, '.');
|
||||
|
||||
if (ext == NULL)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user