Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6824 → Rev 6825

/programs/system/shell/system/string.c
70,7 → 70,25
 
}
 
int strnicmp(const char* string1, const char* string2, unsigned count)
{
int pc = 0;
while (1)
{
if (toupper(*string1)<toupper(*string2))
return -1;
if (toupper(*string1)>toupper(*string2))
return 1;
 
if (*string1=='\0' || pc == count)
return 0;
 
string1++;
string2++;
pc++;
}
}
 
void strcpy(char strDest[], const char strSource[])
{
unsigned i;
/programs/system/shell/system/string.h
18,3 → 18,4
void reverse(char *s);
void itoa(int i, char *s);
int _atoi( char *s );
int strnicmp(const char* string1, const char* string2, unsigned count);