Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_unix/sys/src/libc/port/runestrcmp.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
 
4
int
5
runestrcmp(Rune *s1, Rune *s2)
6
{
7
	Rune c1, c2;
8
 
9
	for(;;) {
10
		c1 = *s1++;
11
		c2 = *s2++;
12
		if(c1 != c2) {
13
			if(c1 > c2)
14
				return 1;
15
			return -1;
16
		}
17
		if(c1 == 0)
18
			return 0;
19
	}
20
}