#include char * str·nfindc(char *s, intptr n, int c) { while(*s && n-- > 0){ if(*s == c) return s; s++; } return nil; }