Lines Matching refs:endptr
31 void test1(char *array, char *endptr) { in test1() argument
33 long r = strtol(array, &endptr, 3); in test1()
34 assert(array + 2 == endptr); in test1()
38 void test2(char *array, char *endptr) { in test2() argument
41 long r = strtol(array, &endptr, 35); in test2()
42 assert(array + 2 == endptr); in test2()
46 void test3(char *array, char *endptr) { in test3() argument
64 void test4(char *array, char *endptr) { in test4() argument
79 void test5(char *array, char *endptr) { in test5() argument
88 void test6(char *array, char *endptr) { in test6() argument
92 long r = strtol(array, &endptr, 0); in test6()
93 assert(array == endptr); in test6()
97 void test7(char *array, char *endptr) { in test7() argument
107 char *endptr = NULL; in main() local
112 if (!strcmp(argv[1], "test1")) test1(array, endptr); in main()
115 if (!strcmp(argv[1], "test2")) test2(array, endptr); in main()
118 if (!strcmp(argv[1], "test3")) test3(array0, endptr); in main()
121 if (!strcmp(argv[1], "test4")) test4(array, endptr); in main()
124 if (!strcmp(argv[1], "test5")) test5(array, endptr); in main()
127 if (!strcmp(argv[1], "test6")) test6(array, endptr); in main()
130 if (!strcmp(argv[1], "test7")) test7(array, endptr); in main()