Utilities/RB_ContainsNL [ Functions ]

FUNCTION

Check whether the provided line buffer contains a new line (NL) character.

INPUTS

RETURN VALUE

SOURCE

int RB_ContainsNL(
    char *line )
{
    int                 found = 0;

    for ( ; *line != '\0'; ++line )
    {
        if ( *line == '\n' )
        {
            found = 1;
        }
    }
    return found;
}