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