strnchr
while ((c = strnchr(buf, '\n', left)) != NULL) {
extern char *strnchr(const char *, int, size_t);
c = strnchr(compo->data, '.', compo->length);
name_end = strnchr(buf, '\0', buf_end - buf + 1);