Part/RB_Open_Source [ Functions ]
FUNCTION
Open the sourcefile of this part.
SYNOPSIS
FILE* RB_Open_Source( struct RB_Part *part )
INPUTS
- part -- the part for which the file is opened.
SOURCE
{ char *sourcefilename = NULL; FILE *result; assert( part ); assert( part->filename ); sourcefilename = Get_Fullname( part->filename ); result = fopen( sourcefilename, "r" ); if ( result ) { /* OK */ } else { RB_Panic( "can't open %s!", sourcefilename ); } return result; }