Files
haiku-beta6/src/kernel/libroot/posix/string/strchrnul.c
T

20 lines
318 B
C
Raw Normal View History

/*
** 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;
}