Configuration/Find_Parameter_Partial [ Functions ]
FUNCTION
Checks for the existence of a given configuration parameter (partial string match)
SOURCE
char *Find_Parameter_Partial( struct Parameters *params, char *paramname ) { unsigned int i; // we are looking for a not exact match for ( i = 0; i < params->number; i++ ) { if ( !strncmp ( params->names[i], paramname, strlen( params->names[i] ) ) ) { // found it return params->names[i]; } } // parameter not found return NULL; }