mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
313 B
14 lines
313 B
#include "stralloc.h" |
|
#include "byte.h" |
|
#include "str.h" |
|
|
|
extern int stralloc_diff(const stralloc* a,const stralloc* b) { |
|
register unsigned int i; |
|
register int j; |
|
for (i=0;;++i) { |
|
if (i==a->len) return i==b->len?0:-1; if (i==b->len) return 1; |
|
if ((j=(a->s[i]-b->s[i]))) return j; |
|
} |
|
return j; |
|
} |
|
|
|
|