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,12 @@
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/* Implementation based on musl */
|
||||
|
||||
wchar_t *
|
||||
wcschr(const wchar_t *s, wchar_t c)
|
||||
{
|
||||
/* ZZZ unimplemented */
|
||||
return(NULL);
|
||||
if (!c) return (wchar_t *)s + wcslen(s);
|
||||
for (; *s && *s != c; s++);
|
||||
return *s ? (wchar_t *)s : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user