home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / splint3s.zip / splint-3.0.1.6 / test / unsignedcompare.c < prev    next >
Text File  |  2001-09-12  |  229b  |  17 lines

  1. void test (int fd, void *buffer, size_t cnt)
  2. {
  3.   unsigned long res;
  4.  
  5.   res = read(fd, buffer, cnt);
  6.  
  7.   if (res <= 0)
  8.     {
  9.       printf ("You lose!");
  10.     }
  11.  
  12.   if (res < 0 || res >= 0)
  13.     {
  14.       printf ("twice loser");
  15.     }
  16. }
  17.