Utilities/RB_ContainsNL [ Functions ]
FUNCTION
Check whether the provided line buffer contains a new line (NL) character.
INPUTS
- line -- line string to process
RETURN VALUE
- TRUE -- the line contains a NL character
- FALSE -- the line does not contain a NL character
SOURCE
int RB_ContainsNL( char *line ) { int found = 0; for ( ; *line != '\0'; ++line ) { if ( *line == '\n' ) { found = 1; } } return found; }