xp_comm_proj/rd_dicom/Papyrus3/PapyFiles3.c
/********************************************************************************/
/*										*/
/*	write_pos3 : writes from the buffer to the file at the specified pos. 	*/
/*	This function is used when writting the backward references to the file	*/
/* 	return : standard error message						*/
/*										*/
/********************************************************************************/
write_pos3 : writes from the buffer to the file at the specified pos.
This function is used when writting the backward references to the file
return : standard error message
write_pos3 : writes from the buffer to the file at the specified pos . This function is used when writting the backward references to the file return : standard error message
PapyShort
write_pos3 (PAPY_FILE inFp, PapyULong inPos, unsigned char **ioBuffP, PapyShort inLength)
{
  int		theErr;
  PapyULong   	theTmpULong;
  if (Papy3FSeek (inFp, (int) SEEK_SET, (PapyLong) inPos))
  {
    theErr = Papy3FClose (&inFp);
    efree3 ((void **) ioBuffP);
    RETURN (papPositioning)
  } 
  theTmpULong = inLength;
  if (Papy3FWrite (inFp, (PapyULong *) &theTmpULong, 1L, *ioBuffP) < 0)
  {
    theErr = Papy3FClose (&inFp);
    efree3 ((void **) ioBuffP);
    RETURN (papWriteFile)
  } 
  efree3 ((void **) ioBuffP);
  RETURN (papNoError);
}
PapyShort write_pos3 ( PAPY_FILE inFp , PapyULong inPos , unsigned char * * ioBuffP , PapyShort inLength ) { int theErr ; PapyULong theTmpULong ; if ( Papy3FSeek ( inFp , ( int ) SEEK_SET , ( PapyLong ) inPos ) ) { theErr = Papy3FClose ( & inFp ) ; efree3 ( ( void * * ) ioBuffP ) ; RETURN ( papPositioning ) } theTmpULong = inLength ; if ( Papy3FWrite ( inFp , ( PapyULong * ) & theTmpULong , 1L , * ioBuffP ) < 0 ) { theErr = Papy3FClose ( & inFp ) ; efree3 ( ( void * * ) ioBuffP ) ; RETURN ( papWriteFile ) } efree3 ( ( void * * ) ioBuffP ) ; RETURN ( papNoError ) ; }
write_pos3 : writes from the buffer to the file at the specified pos.
write_pos3 : writes from the buffer to the file at the specified pos .
/*PapyShort	inFp;					 the file pointer */ /*PapyULong	inPos;			       the position to write from */ /*unsigned char	**ioBuffP;				 the buffer to write from */ /*PapyShort	inLength;		       the length of the element to write */ /* if */ /* if */