[BACK]Return to test-strtonum.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/test-strtonum.c between version 1.1 and 1.2

version 1.1, 2015/02/16 14:56:22 version 1.2, 2015/10/06 18:32:20
Line 23  main(void)
Line 23  main(void)
         const char *errstr;          const char *errstr;
   
         if (strtonum("1", 0, 2, &errstr) != 1)          if (strtonum("1", 0, 2, &errstr) != 1)
                 return(1);                  return 1;
         if (errstr != NULL)          if (errstr != NULL)
                 return(2);                  return 2;
         if (strtonum("1x", 0, 2, &errstr) != 0)          if (strtonum("1x", 0, 2, &errstr) != 0)
                 return(3);                  return 3;
         if (errstr == NULL)          if (errstr == NULL)
                 return(4);                  return 4;
         if (strtonum("2", 0, 1, &errstr) != 0)          if (strtonum("2", 0, 1, &errstr) != 0)
                 return(5);                  return 5;
         if (errstr == NULL)          if (errstr == NULL)
                 return(6);                  return 6;
         if (strtonum("0", 1, 2, &errstr) != 0)          if (strtonum("0", 1, 2, &errstr) != 0)
                 return(7);                  return 7;
         if (errstr == NULL)          if (errstr == NULL)
                 return(8);                  return 8;
         return(0);          return 0;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb