Lines Matching refs:endptr
33 void test1(char *array, char *endptr) { in test1() argument
35 long long r = strtoll(array, &endptr, 3); in test1()
36 assert(array + 2 == endptr); in test1()
40 void test2(char *array, char *endptr) { in test2() argument
43 long long r = strtoll(array, &endptr, 35); in test2()
44 assert(array + 2 == endptr); in test2()
48 void test3(char *array, char *endptr) { in test3() argument
57 void test4(char *array, char *endptr) { in test4() argument
63 void test5(char *array, char *endptr) { in test5() argument
72 void test6(char *array, char *endptr) { in test6() argument
76 long long r = strtoll(array, &endptr, 0); in test6()
77 assert(array == endptr); in test6()
81 void test7(char *array, char *endptr) { in test7() argument
91 char *endptr = NULL; in main() local
96 if (!strcmp(argv[1], "test1")) test1(array, endptr); in main()
99 if (!strcmp(argv[1], "test2")) test2(array, endptr); in main()
102 if (!strcmp(argv[1], "test3")) test3(array0, endptr); in main()
105 if (!strcmp(argv[1], "test4")) test4(array, endptr); in main()
108 if (!strcmp(argv[1], "test5")) test5(array, endptr); in main()
111 if (!strcmp(argv[1], "test6")) test6(array, endptr); in main()
114 if (!strcmp(argv[1], "test7")) test7(array, endptr); in main()