mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Update wcspbrk(3) to current coding conventions.
This commit is contained in:
parent
b4c7a6aa4a
commit
7911b5c66c
1 changed files with 3 additions and 3 deletions
|
@ -26,8 +26,8 @@
|
|||
|
||||
extern "C" wchar_t* wcspbrk(const wchar_t* str, const wchar_t* accept)
|
||||
{
|
||||
size_t rejectlen = wcscspn(str, accept);
|
||||
if ( !str[rejectlen] )
|
||||
size_t reject_length = wcscspn(str, accept);
|
||||
if ( !str[reject_length] )
|
||||
return NULL;
|
||||
return (wchar_t*) str + rejectlen;
|
||||
return (wchar_t*) str + reject_length;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue