Lines Matching refs:endptr

1041   char *endptr = NULL;  in test_strtol()  local
1042 long int ret = strtol(non_number_buf, &endptr, 10); in test_strtol()
1044 assert(endptr == non_number_buf); in test_strtol()
1050 ret = strtol(buf, &endptr, base); in test_strtol()
1052 assert(endptr == buf + 10); in test_strtol()
1058 ret = strtol(buf, &endptr, 10); in test_strtol()
1060 assert(endptr == buf + 10); in test_strtol()
1067 char *endptr = NULL; in test_strtoll() local
1068 long long int ret = strtoll(non_number_buf, &endptr, 10); in test_strtoll()
1070 assert(endptr == non_number_buf); in test_strtoll()
1076 ret = strtoll(buf, &endptr, base); in test_strtoll()
1078 assert(endptr == buf + 10); in test_strtoll()
1084 ret = strtoll(buf, &endptr, 10); in test_strtoll()
1086 assert(endptr == buf + 10); in test_strtoll()
1093 char *endptr = NULL; in test_strtoul() local
1094 long unsigned int ret = strtoul(non_number_buf, &endptr, 16); in test_strtoul()
1096 assert(endptr == non_number_buf); in test_strtoul()
1102 ret = strtoul(buf, &endptr, base); in test_strtoul()
1104 assert(endptr == buf + 14); in test_strtoul()
1110 ret = strtoul(buf, &endptr, 16); in test_strtoul()
1112 assert(endptr == buf + 14); in test_strtoul()
1119 char *endptr = NULL; in test_strtoull() local
1120 long long unsigned int ret = strtoull(non_number_buf, &endptr, 16); in test_strtoull()
1122 assert(endptr == non_number_buf); in test_strtoull()
1128 ret = strtoull(buf, &endptr, base); in test_strtoull()
1130 assert(endptr == buf + 16); in test_strtoull()
1136 ret = strtoull(buf, &endptr, 16); in test_strtoull()
1138 assert(endptr == buf + 16); in test_strtoull()
1145 char *endptr = NULL; in test_strtod() local
1146 double ret = strtod(non_number_buf, &endptr); in test_strtod()
1148 assert(endptr == non_number_buf); in test_strtod()
1154 ret = strtod(buf, &endptr); in test_strtod()
1156 assert(endptr == buf + 8); in test_strtod()