aboutsummaryrefslogblamecommitdiffstats
path: root/strchrnul.c
blob: e76978fe684ddb15d7b9332ca7e689fc4acdea86 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                         
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"


char *
libsimple_strchrnul(const char *s_, int c)
{
	char *s = *(char **)(void *)&s_;
	for (; *s && (int)*s != c; s++);
	return s;
}