NO

Author Topic: basename ext  (Read 10660 times)

czerny

  • Guest
Re: basename ext
« Reply #15 on: May 07, 2012, 11:32:51 PM »
This should be a little bit quicker
Code: [Select]
BOOL PathMatchSpec3(char *fn, char *ext)
{
char *p=fn, *q=ext;
while (*p++);
while (*q++);

while (--q>=ext)
if (*--p != *q) return FALSE;
return (*--p == '.');
}