Skip to content
Permalink
Browse files
Minor strcasecmp optimization.
  • Loading branch information
icculus committed Mar 30, 2003
1 parent f22dfbf commit fbbaf19a4fbda9741c1c9646cfb6913583749294
Showing with 2 additions and 4 deletions.
  1. +2 −4 platform/posix.c
@@ -131,10 +131,8 @@ int __PHYSFS_platformStricmp(const char *x, const char *y)
{
ux = toupper((int) *x);
uy = toupper((int) *y);
if (ux > uy)
return(1);
else if (ux < uy)
return(-1);
if (ux != uy)
return((ux > uy) ? 1 : -1);
x++;
y++;
} while ((ux) && (uy));

0 comments on commit fbbaf19

Please sign in to comment.