xp_comm_proj/rd_dicom/Papyrus3/PapyFiles3.c
/********************************************************************************/
/*                                                                              */
/*	FileOpen3 : Given a filename open the file for reading                  */
/*	return : no error if OK standard error message otherwise                */
/*                                                                              */
/********************************************************************************/
FileOpen3 : Given a filename open the file for reading
return : no error if OK standard error message otherwise
FileOpen3 : Given a filename open the file for reading return : no error if OK standard error message otherwise
PapyShort
FileOpen3 (char *inNameP, PAPY_FILE inVRefNum, PAPY_FILE *outFp, void* inFSSpec)
{
    PapyShort  theErr;
    if (inNameP == NULL || *inNameP == '\0') 
        RETURN (papFileName);
    if (inFSSpec)
    	theErr = Papy3FOpen (inNameP, 'r', inVRefNum, outFp, &inFSSpec);
    else
    	theErr = Papy3FOpen (inNameP, 'r', inVRefNum, outFp, NULL);
    if ((theErr) < 0)
       RETURN (papOpenFile);
    return papNoError;
}
PapyShort FileOpen3 ( char * inNameP , PAPY_FILE inVRefNum , PAPY_FILE * outFp , void * inFSSpec ) { PapyShort theErr ; if ( inNameP == NULL || * inNameP == ' \0 ' ) RETURN ( papFileName ) ; if ( inFSSpec ) theErr = Papy3FOpen ( inNameP , ' ' , inVRefNum , outFp , & inFSSpec ) ; else theErr = Papy3FOpen ( inNameP , ' ' , inVRefNum , outFp , NULL ) ; if ( ( theErr ) < 0 ) RETURN ( papOpenFile ) ; return papNoError ; }
FileOpen3 : Given a filename open the file for reading
return : no error if OK standard error message otherwise
FileOpen3 : Given a filename open the file for reading return : no error if OK standard error message otherwise