Returning the pointer to the null byte when the character isn't found is useful when handling null terminated strings that contain newlines. This means the return value is never null and the line span always ends at the resulting value.
Returning the pointer to the null byte when the character isn't found is useful when handling null terminated strings that contain newlines. This means the return value is never null and the line span always ends at the resulting value.