#include char *strchrnul(const char *s, int c) { size_t i; for(i = 0; s[i]; i++) { if(s[i] == c) return (char *)&s[i]; } return (char *)&s[i]; }