Analyser/Module_Name [ Functions ]
FUNCTION
Get the module name from the header name. The header name will be something like
module/functionname.
SYNPOPSIS
INPUTS
- header_name -- a pointer to a nul terminated string.
RESULT
Pointer to the modulename. You're responsible for freeing it.
SEE ALSO
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; }