source:
trunk/sys/dietlibc/wmemcmp.c
@
112
Last change on this file since 112 was 1, checked in by , 8 years ago | |
---|---|
File size: 183 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <wchar.h> |
2 | ||
3 | int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) { | |
4 | size_t i; | |
5 | for (i=0; i<n; ++i) { | |
6 | wint_t x=s1[i]-s2[i]; | |
7 | if (x) return x; | |
8 | } | |
9 | return 0; | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.