tools/widl/widl.c
/* duplicate a basename into a valid C token */
duplicate a basename into a valid C token
duplicate a basename into a valid C token
static char *dup_basename_token(const char *name, const char *ext)
{
    char *p, *ret = dup_basename( name, ext );
    for (p = ret; *p; p++) if (!isalnum(*p)) *p = '_';
    return ret;
}
static char * dup_basename_token ( const char * name , const char * ext ) { char * p , * ret = dup_basename ( name , ext ) ; for ( p = ret ; * p ; p ++ ) if ( ! isalnum ( * p ) ) * p = ' ' ; return ret ; }
duplicate a basename into a valid C token
duplicate a basename into a valid C token
/* map invalid characters to '_' */