char* p;
// set p to point to a character buffer containing newlineschar* nl = find(p, unreachable_sentinel, '\n');

Provided a newline character really exists in the buffer, the use of
unreachable_­sentinel above potentially makes the call to find more
efficient since the loop test against the sentinel does not require a
conditional branch.