xp_comm_proj/rd_dicom/Papyrus3/PapyList3.c
/********************************************************************************/
/*										*/
/*	DeleteFirstInList : Deletes the first element of the list.		*/
/*	return : papNoError if OK, listError in case of an error.		*/
/*										*/
/********************************************************************************/
DeleteFirstInList : Deletes the first element of the list.
return : papNoError if OK, listError in case of an error.
DeleteFirstInList : Deletes the first element of the list . return : papNoError if OK listError in case of an error .
PapyShort
DeleteFirstInList (PapyShort inFileNb, Papy_List **ioListP, int inDelAll, int inDelGroup, int inDelSeq)
{
  Papy_List	*theWrkP;
  PapyShort	theErr = 0;
  if (*ioListP == NULL) return theErr;
  theWrkP  = *ioListP;
  *ioListP = (*ioListP)->next;
  theErr = FreeCell (inFileNb, &theWrkP, inDelAll, inDelGroup, inDelSeq);
  RETURN (theErr);
}
PapyShort DeleteFirstInList ( PapyShort inFileNb , Papy_List * * ioListP , int inDelAll , int inDelGroup , int inDelSeq ) { Papy_List * theWrkP ; PapyShort theErr = 0 ; if ( * ioListP == NULL ) return theErr ; theWrkP = * ioListP ; * ioListP = ( * ioListP ) -> next ; theErr = FreeCell ( inFileNb , & theWrkP , inDelAll , inDelGroup , inDelSeq ) ; RETURN ( theErr ) ; }
DeleteFirstInList : Deletes the first element of the list.
DeleteFirstInList : Deletes the first element of the list .
/* change the head pointer */ /* free the cell and its content */