Add strchrnul()
[git] / compat / strchrnul.c
1 #include "../git-compat-util.h"
2
3 char *gitstrchrnul(const char *s, int c)
4 {
5         while (*s && *s != c)
6                 s++;
7         return (char *)s;
8 }