xp_comm_proj/rd_dicom/Papyrus3/PapyFileSystemUnix3.c
/********************************************************************************/
/*										*/
/*	Papy3FCreate : overwrites the standard create file function		*/
/*	return : standard error message						*/
/*										*/
/********************************************************************************/
Papy3FCreate : overwrites the standard create file function
return : standard error message
Papy3FCreate : overwrites the standard create file function return : standard error message
int
Papy3FCreate (char *inFilenameP, PAPY_FILE inVolume, PAPY_FILE *inFp, void **inFSSpecP)
{
  int         err;
  PAPY_FILE   file;
  if ((file = fopen (inFilenameP, "rb")) != NULL)
  {
    (void) fclose (file);
    RETURN (papFileAlreadyExist);
  }
  if ((file = fopen (inFilenameP, "wb")) == NULL)
    RETURN (papFileCreationFailed);
  (void) fclose (file);
  return 0;
}
int Papy3FCreate ( char * inFilenameP , PAPY_FILE inVolume , PAPY_FILE * inFp , void * * inFSSpecP ) { int err ; PAPY_FILE file ; if ( ( file = fopen ( inFilenameP , " " ) ) != NULL ) { ( void ) fclose ( file ) ; RETURN ( papFileAlreadyExist ) ; } if ( ( file = fopen ( inFilenameP , " " ) ) == NULL ) RETURN ( papFileCreationFailed ) ; ( void ) fclose ( file ) ; return 0 ; }
Papy3FCreate : overwrites the standard create file function
return : standard error message
Papy3FCreate : overwrites the standard create file function return : standard error message