Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6433 siemargl 1
#include 
2
 
145 halyavin 3
int strcmp(const char* string1, const char* string2)
4
{
5
	while (1)
6
	{
7
		if (*string1<*string2)
8
			return -1;
9
		if (*string1>*string2)
10
			return 1;
11
		if (*string1=='\0')
12
			return 0;
13
		string1++;
14
		string2++;
15
	}
16
}