Lines Matching refs:endptr
32 void test1(char *array, char *endptr) { in test1() argument
34 long r = strtol(array, &endptr, 3); in test1()
35 assert(array + 2 == endptr); in test1()
39 void test2(char *array, char *endptr) { in test2() argument
42 long r = strtol(array, &endptr, 35); in test2()
43 assert(array + 2 == endptr); in test2()
47 void test3(char *array, char *endptr) { in test3() argument
65 void test4(char *array, char *endptr) { in test4() argument
80 void test5(char *array, char *endptr) { in test5() argument
89 void test6(char *array, char *endptr) { in test6() argument
93 long r = strtol(array, &endptr, 0); in test6()
94 assert(array == endptr); in test6()
98 void test7(char *array, char *endptr) { in test7() argument
108 char *endptr = NULL; in main() local
113 if (!strcmp(argv[1], "test1")) test1(array, endptr); in main()
116 if (!strcmp(argv[1], "test2")) test2(array, endptr); in main()
119 if (!strcmp(argv[1], "test3")) test3(array0, endptr); in main()
122 if (!strcmp(argv[1], "test4")) test4(array, endptr); in main()
125 if (!strcmp(argv[1], "test5")) test5(array, endptr); in main()
128 if (!strcmp(argv[1], "test6")) test6(array, endptr); in main()
131 if (!strcmp(argv[1], "test7")) test7(array, endptr); in main()