Files
haiku-beta6/src/kernel/libroot/posix/string/strchrnul.c
T
Axel Dörfler 64aebcff0e Added glibc's proprietary strchrnul() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 14:50:10 +00:00

20 lines
318 B
C

/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <sys/types.h>
#include <string.h>
char *
strchrnul(const char *string, int c)
{
while (string[0] != (char)c && string[0])
string++;
return (char *)string;
}