Generator/RB_Add_Extension [ Functions ]
FUNCTION
Add an extension to the filename base based on on the current output mode.
INPUTS
- doctype -- output mode
- name -- the name of the file without extension and with enough room left to add the extension.
OUTPUT
name -- the name of the file including the extension.
SOURCE
void RB_Add_Extension( char *extension, char *name ) { if ( *extension != '.' ) strcat( name, "." ); strcat( name, extension ); }