Skip to content

Commit 786f747

Browse files
committed
Add str* functions to cstdlib/stdlib.h headers
1 parent aae01d0 commit 786f747

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

cpp/common/test/includes/standard-library/cstdlib

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ using ::free;
1515
using ::malloc;
1616
using ::quick_exit;
1717
using ::rand;
18+
using ::strtod;
19+
using ::strtof;
20+
using ::strtol;
21+
using ::strtold;
22+
using ::strtoll;
23+
using ::strtoul;
24+
using ::strtoull;
1825
} // namespace std
1926
#endif // _GHLIBCPP_CSTDLIB

cpp/common/test/includes/standard-library/stdlib.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ long int atol(const char *str);
2626
long long int atoll(const char *str);
2727
double atof(const char *str);
2828

29+
long int strtol(const char *str, char **endptr, int base);
30+
long long int strtoll(const char *str, char **endptr, int base);
31+
unsigned long int strtoul(const char *str, char **endptr, int base);
32+
unsigned long long int strtoull(const char *str, char **endptr, int base);
33+
double strtod(const char *str, char **endptr);
34+
float strtof(const char *str, char **endptr);
35+
long double strtold(const char *str, char **endptr);
36+
2937
int rand(void);
3038

3139
#endif // _GHLIBCPP_STDLIB

0 commit comments

Comments
 (0)