/* basic strchr */ void dummy_wrapper (void) { startline = buf; while ((endline = strchr (startline, '\n')) != NULL) { *endline = '\0'; /* Terminate string */ } }