From 75ea20675d012e692996bc6beae9149b0deb08b0 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 5 Nov 2021 18:52:11 +0100 Subject: initial commit --- stechr.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 stechr.c (limited to 'stechr.c') diff --git a/stechr.c b/stechr.c new file mode 100644 index 0000000..d5bce2f --- /dev/null +++ b/stechr.c @@ -0,0 +1,8 @@ +char * +stechr(const char *src, const char *end, int c) +{ + while (src < end && *src && *(unsigned char *)src != (unsigned char)c) + src++; + + return (char *)src; +} -- cgit 1.4.1