From f67416822a54109bd9cfa0fd210d7d8f53412ced Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 14 Jun 2017 13:09:23 -0500 Subject: move all compatibility library stuff into libgcompat/ --- libgcompat/stdlib.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libgcompat/stdlib.c (limited to 'libgcompat/stdlib.c') diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c new file mode 100644 index 0000000..30c904e --- /dev/null +++ b/libgcompat/stdlib.c @@ -0,0 +1,14 @@ +#include // assert +#include // strtod + +char *__realpath_chk(const char *path, char *resolved_path) +{ + assert(path != NULL); + return realpath(path, resolved_path); +} + +double __strtod_internal(const char *__nptr, char **__endptr, int __group) +{ + assert(__group == 0); + return strtod(__nptr, __endptr); +} -- cgit v1.2.3-70-g09d2