home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_08 / 8n08044b < prev    next >
Text File  |  1990-07-18  |  323b  |  24 lines

  1.  
  2. func(int type)
  3. {
  4. switch(type)
  5.   {
  6.   case 1:
  7.   /*** Do work for type code 1   ***/
  8.   return(SUCCESS);
  9.  
  10.   case 2:
  11.   critical 
  12.     {
  13.     /*** Do critical type 2 work ***/
  14.     }
  15.   return(SUCCESS);
  16.  
  17.   default:
  18.   if(type > 5) return(ERROR);
  19.   /*** Do default work           ***/
  20.   return(SUCCESS);
  21.   }
  22. }
  23.  
  24.