src/lib/ppc405lib/strtox.c
// Pick up a +/- sign.  This is a predicate returning 1 if the value is
// negated. 
Pick up a +/- sign.  This is a predicate returning 1 if the value is
negated.
Pick up a + / - sign . This is a predicate returning 1 if the value is negated .
static int
sign(const char** s)
{
    if (**s == '+') {
        (*s)++;
        return 0;
    } else if (**s == '-') {
        (*s)++;
        return 1;
    } else {
        return 0;
    }
}
static int sign ( const char * * s ) { if ( * * s == ' ' ) { ( * s ) ++ ; return 0 ; } else if ( * * s == ' ' ) { ( * s ) ++ ; return 1 ; } else { return 0 ; } }
Pick up a +/- sign.
Pick up a + / - sign .