Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4272 → Rev 4279

/trunk/uspace/lib/libc/include/string.h
86,7 → 86,6
* TODO: Get rid of this.
*/
 
extern int strncmp(const char *, const char *, size_t);
extern int stricmp(const char *, const char *);
 
extern char *strcat(char *, const char *);
/trunk/uspace/lib/libc/generic/getopt.c
386,8 → 386,8
for (i = 0; long_options[i].name; i++) {
/* find matching long option */
if (strncmp(current_argv, long_options[i].name,
current_argv_len))
if (str_lcmp(current_argv, long_options[i].name,
str_nlength(current_argv, current_argv_len)))
continue;
 
if (str_size(long_options[i].name) ==
/trunk/uspace/lib/libc/generic/string.c
661,17 → 661,6
return true;
}
 
int strncmp(const char *a, const char *b, size_t n)
{
size_t c = 0;
 
while (c < n && a[c] && b[c] && (!(a[c] - b[c])))
c++;
return ( c < n ? a[c] - b[c] : 0);
}
 
int stricmp(const char *a, const char *b)
{
int c = 0;