mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
Provide some more wide char functions.
This commit is contained in:
@ -37,9 +37,11 @@
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/* Implementation based on musl */
|
||||
|
||||
int
|
||||
wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
|
||||
{
|
||||
/* ZZZ unimplemented */
|
||||
return(0);
|
||||
for (; n && *s1==*s2 && *s1 && *s2; n--, s1++, s2++);
|
||||
return n ? *s1 - *s2 : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user