Analyser/Module_Name [ Functions ]

FUNCTION

Get the module name from the header name. The header name will be something like

     module/functionname.

SYNPOPSIS

INPUTS

RESULT

Pointer to the modulename. You're responsible for freeing it.

SEE ALSO

Function_Name()

SOURCE

{
    char               *cur_char;
    char                c;
    char               *name = NULL;

    assert( header_name );

    for ( cur_char = header_name; *cur_char && *cur_char != '/'; ++cur_char );
    if ( *cur_char )
    {
        c = *cur_char;
        *cur_char = '\0';
        name = RB_StrDup( header_name );
        *cur_char = c;
    }
    return name;
}