diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/strchrnul.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/strchrnul.c b/compat/strchrnul.c new file mode 100644 index 0000000000..51839feb6e --- /dev/null +++ b/compat/strchrnul.c @@ -0,0 +1,8 @@ +#include "../git-compat-util.h" + +char *gitstrchrnul(const char *s, int c) +{ + while (*s && *s != c) + s++; + return (char *)s; +} |