diff options
Diffstat (limited to 'stechr.c')
-rw-r--r-- | stechr.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; +} |