cleanup composer/compositing/composition -> compositor
[AROS.git] / test / clib / strtol.c
blob916393f49c70605e2aac6bd1b73e4f74ddcd483c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "test.h"
5 int main(void)
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))
27 return OK;
30 void cleanup(void)