diff options
Diffstat (limited to 'src/string/wcscmp.c')
-rw-r--r-- | src/string/wcscmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string/wcscmp.c b/src/string/wcscmp.c new file mode 100644 index 0000000..26eeee7 --- /dev/null +++ b/src/string/wcscmp.c @@ -0,0 +1,7 @@ +#include <wchar.h> + +int wcscmp(const wchar_t *l, const wchar_t *r) +{ + for (; *l==*r && *l && *r; l++, r++); + return *l - *r; +} |