Configuration/Find_Parameter_Exact [ Functions ]

FUNCTION

Checks for the existence of a given configuration parameter (exact string match)

SOURCE

char               *Find_Parameter_Exact(
    struct Parameters *params,
    char *paramname )
{
    unsigned int        i;

    // we are looking for an exact match
    for ( i = 0; i < params->number; i++ )
    {
        if ( !strcmp( params->names[i], paramname ) )
        {
            // found it
            return params->names[i];
        }
    }

    // parameter not found
    return NULL;
}