Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3270 → Rev 3271

/trunk/uspace/lib/libc/generic/string.c
146,7 → 146,6
c++;
return (a[c] - b[c]);
}
 
int strncmp(const char *a, const char *b, size_t n)
160,6 → 159,16
}
 
int stricmp(const char *a, const char *b)
{
int c = 0;
while (a[c] && b[c] && (!(tolower(a[c]) - tolower(b[c]))))
c++;
return (tolower(a[c]) - tolower(b[c]));
}
 
/** Return pointer to the first occurence of character c in string.
*
* @param str Scanned string.