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