Subversion Repositories Kolibri OS

Rev

Rev 7504 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7504 Rev 7517
Line 38... Line 38...
38
	return res;
38
	return res;
39
}
39
}
40
 
40
 
41
/*int abs(int n)
41
int toupper(int c)
Line -... Line 42...
-
 
42
{
-
 
43
	if ( (c >= 97) && (c <= 122) )	return c-32 ;
-
 
44
	if ( (c >= 160) && (c <= 175) )	return c-32 ;
-
 
45
	if ( (c >= 224) && (c <= 239) )	return c-80 ;
-
 
46
	if ( (c == 241) || (c == 243) || (c == 245) || (c == 247) )	return c-1;
-
 
47
	return c;
-
 
48
}
-
 
49
 
-
 
50
int strnicmp(const char* string1, const char* string2, unsigned count)
-
 
51
{
-
 
52
int pc = 0;
-
 
53
while (1)
-
 
54
	{
-
 
55
		if (toupper(*string1)
-
 
56
		if (toupper(*string1)>toupper(*string2)) return 1;
-
 
57
		if (*string1=='\0' || pc == count) return 0;
-
 
58
		string1++;
-
 
59
		string2++;
-
 
60
		pc++;
-
 
61
	}
-
 
62
}
-
 
63
 
-
 
64
/*int abs(int n)
42
{
65
{
43
	return (n<0)?-n:n;
66
	return (n<0)?-n:n;
44
}*/
67
}*/
45
 
68