Changeset 34120f10 in mainline for common/strtol.c
- Timestamp:
- 2023-10-27T19:38:31Z (15 months ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63ed840
- Parents:
- c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
common/strtol.c
rc89ae25 r34120f10 269 269 long strtol(const char *nptr, char **endptr, int base) 270 270 { 271 #if !__STDC_HOSTED__ 272 errno_t errno; 273 #endif 274 271 275 return _strtosigned(nptr, endptr, base, LONG_MIN, LONG_MAX, &errno, false); 272 276 } … … 287 291 unsigned long strtoul(const char *nptr, char **endptr, int base) 288 292 { 293 #if !__STDC_HOSTED__ 294 errno_t errno; 295 #endif 296 289 297 return _strtounsigned(nptr, endptr, base, ULONG_MAX, &errno, false); 290 298 } … … 292 300 long long strtoll(const char *nptr, char **endptr, int base) 293 301 { 302 #if !__STDC_HOSTED__ 303 errno_t errno; 304 #endif 305 294 306 return _strtosigned(nptr, endptr, base, LLONG_MIN, LLONG_MAX, &errno, false); 295 307 } … … 297 309 unsigned long long strtoull(const char *nptr, char **endptr, int base) 298 310 { 311 #if !__STDC_HOSTED__ 312 errno_t errno; 313 #endif 314 299 315 return _strtounsigned(nptr, endptr, base, ULLONG_MAX, &errno, false); 300 316 } … … 302 318 intmax_t strtoimax(const char *nptr, char **endptr, int base) 303 319 { 320 #if !__STDC_HOSTED__ 321 errno_t errno; 322 #endif 323 304 324 return _strtosigned(nptr, endptr, base, INTMAX_MIN, INTMAX_MAX, &errno, false); 305 325 } … … 307 327 uintmax_t strtoumax(const char *nptr, char **endptr, int base) 308 328 { 329 #if !__STDC_HOSTED__ 330 errno_t errno; 331 #endif 332 309 333 return _strtounsigned(nptr, endptr, base, UINTMAX_MAX, &errno, false); 310 334 }
Note:
See TracChangeset
for help on using the changeset viewer.