2 * Acess2 C Library (Test)
3 * - By John Hodge (thePowersGang)
11 #define TST(t, class, base, val, exp, fmt) do {\
12 t ret = strto##class(#val, NULL, base); \
14 printf("FAIL strto"#class"('"#val"') != "#val" (act 0x"fmt")\n", ret);\
17 int main(int argc, char *argv[])
19 TST(unsigned long, ul, 0, 0x10ec, 0x10ec, "%lx");
20 TST(unsigned long long, ull, 0, 0xffeed10ec, 0xffeed10ec, "%llx");