source: trunk/sys/dietlibc/wmemcmp.c @ 378

Last change on this file since 378 was 1, checked in by alain, 8 years ago

First import

File size: 183 bytes
Line 
1#include <wchar.h>
2
3int 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.