lib/namemap.c
/* A table or port name doesn't need to be quoted if it is alphanumeric and
 * starts with a letter. */
A table or port name doesn't need to be quoted if it is alphanumeric and
starts with a letter.
A table or port name doesn ' t need to be quoted if it is alphanumeric and starts with a letter .
static bool
name_needs_quotes(const char *name)
{
    if (!isalpha((unsigned char) name[0])) {
        return true;
    }
    for (const char *p = name + 1; *p; p++) {
        if (!isalnum((unsigned char) *p)) {
            return true;
        }
    }
    return false;
}
static bool name_needs_quotes ( const char * name ) { if ( ! isalpha ( ( unsigned char ) name [ 0 ] ) ) { return true ; } for ( const char * p = name + 1 ; * p ; p ++ ) { if ( ! isalnum ( ( unsigned char ) * p ) ) { return true ; } } return false ; }
A table or port name doesn't need to be quoted if it is alphanumeric and
 starts with a letter.
A table or port name doesn ' t need to be quoted if it is alphanumeric and starts with a letter .