home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / mut.c < prev    next >
Text File  |  1997-09-03  |  204b  |  19 lines

  1. # include "mut.h"
  2.  
  3. void mut_mod (mut a)
  4. {
  5.   *a = 3;
  6. }
  7.  
  8. mut mut_create (void)
  9. {
  10.   int *x = (int *) malloc(sizeof(int));
  11.  
  12.   if (x == NULL)
  13.     {
  14.       exit (EXIT_FAILURE);
  15.     }
  16.   *x = 3;    
  17.   return x;
  18. }
  19.