Generator/RB_Add_Extension [ Functions ]

FUNCTION

Add an extension to the filename base based on on the current output mode.

INPUTS

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 );
}