evolve4src/src/evolve_simulator/phascii.cpp
static int is_ident(char *tok)
{
	char *p;

	if( !isalpha(tok[0]) )
		return FALSE;

	for(p=tok+1; *p; p++) {
		if( !isalnum(*p) && strchr("_-", *p)==NULL )
			return FALSE;
	}
	return TRUE;
}
/*
 * Determine if the string is an identifier.
 */
Determine if the string is an identifier.
Determine if the string is an identifier .
static int is_ident(char *tok)
{
	char *p;
	if( !isalpha(tok[0]) )
		return FALSE;
	for(p=tok+1; *p; p++) {
		if( !isalnum(*p) && strchr("_-", *p)==NULL )
			return FALSE;
	}
	return TRUE;
}
static int is_ident ( char * tok ) { char * p ; if ( ! isalpha ( tok [ 0 ] ) ) return FALSE ; for ( p = tok + 1 ; * p ; p ++ ) { if ( ! isalnum ( * p ) && strchr ( " " , * p ) == NULL ) return FALSE ; } return TRUE ; }
Determine if the string is an identifier.
Determine if the string is an identifier .