extras/ignorecase.c
changeset 1385 146019d5d747
parent 1194 b3f242b55333
child 1544 7f6020ee746c
equal deleted inserted replaced
1384:d844add9a935 1385:146019d5d747
    87 
    87 
    88 int PHYSFSEXT_locateCorrectCase(char *buf)
    88 int PHYSFSEXT_locateCorrectCase(char *buf)
    89 {
    89 {
    90     int rc;
    90     int rc;
    91     char *ptr;
    91     char *ptr;
    92     char *prevptr;
       
    93 
    92 
    94     while (*buf == '/')  /* skip any '/' at start of string... */
    93     while (*buf == '/')  /* skip any '/' at start of string... */
    95         buf++;
    94         buf++;
    96 
    95 
    97     ptr = prevptr = buf;
    96     ptr = buf;
    98     if (*ptr == '\0')
    97     if (*ptr == '\0')
    99         return 0;  /* Uh...I guess that's success. */
    98         return 0;  /* Uh...I guess that's success. */
   100 
    99 
   101     while ( (ptr = strchr(ptr + 1, '/')) != NULL )
   100     while ( (ptr = strchr(ptr + 1, '/')) != NULL )
   102     {
   101     {