7 TEST((strtol("0xff", NULL
, 0) == 255UL))
8 TEST((strtol("0xff", NULL
, 16) == 255UL))
9 TEST((strtol("0x0", NULL
, 0) == 0UL))
10 TEST((strtol("0x0", NULL
, 16) == 0UL))
11 TEST((strtol("0", NULL
, 0) == 0UL))
12 TEST((strtol("0", NULL
, 16) == 0UL))
13 TEST((strtol("0x0 ", NULL
, 0) == 0UL))
14 TEST((strtol("0x0 ", NULL
, 16) == 0UL))
15 TEST((strtol("0 ", NULL
, 0) == 0UL))
16 TEST((strtol("0 ", NULL
, 16) == 0UL))
17 TEST((strtol("0377", NULL
, 0) == 255UL))
18 TEST((strtol("255", NULL
, 0) == 255UL))
19 TEST((strtol("-1", NULL
, 0) == -1UL))
20 TEST((strtol("-0xff", NULL
, 0) == -255UL))
21 TEST((strtol("-0xff", NULL
, 16) == -255UL))
22 TEST((strtol("-ff", NULL
, 16) == -255UL))
23 TEST((strtol("-0377", NULL
, 0) == -255UL))
24 TEST((strtol("-377", NULL
, 8) == -255UL))
25 TEST((strtol("0x7FFFFFFE", NULL
, 16) == 0x7FFFFFFE))
26 TEST((strtol("0xFFFFFFFE", NULL
, 16) == 0xFFFFFFFE))