home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11059a < prev    next >
Text File  |  1990-09-18  |  381b  |  17 lines

  1.  
  2.  
  3.     /* Remove message queue.  The argument buf
  4.      * is not needed but is casted to keep the
  5.      * compiler happy.
  6.     */      
  7.     if (msgctl(msqid, IPC_RMID, (struct msqid_ds *)0) == -1)  {
  8.         /* The perror(3C) function prints the 
  9.          * text of the error number contained 
  10.          * in the external integer errno.
  11.         */
  12.             perror("msgctl() failed: ");
  13.             return(-1);
  14.     }
  15.  
  16.  
  17.