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