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 / preds.c < prev    next >
Text File  |  1997-09-03  |  365b  |  48 lines

  1. int f (bool b1, bool b2, char c, int *p)
  2. {
  3.   if (!p)
  4.     {
  5.       return 3;
  6.     }
  7.  
  8.   if (*p)
  9.     {
  10.       return 4;
  11.     }
  12.  
  13.   if (!(*p))
  14.     {
  15.       return 4;
  16.     }
  17.  
  18.   if (b1 = b2)
  19.     {
  20.       return 5;
  21.     }
  22.   
  23.   if ((c = 'a'))
  24.     {
  25.       return 5;
  26.     }  
  27.  
  28.   if (b1 == b2)
  29.     {
  30.       return 5;
  31.     }
  32.   
  33.   if (c)
  34.     {
  35.       return 2;
  36.     }
  37.  
  38.   return 12;
  39. }
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.