diff options
author | 2022-04-07 19:33:30 +0530 | |
---|---|---|
committer | 2022-04-07 19:33:30 +0530 | |
commit | 54d5ba67489b3fdaf437c05675eb9b1f6d085a84 (patch) | |
tree | d53df52fbfb1f440bba34799c2fcf7ff1ce75a57 /memory/wrap/memory.h | |
download | fflibc-main.tar fflibc-main.tar.gz fflibc-main.tar.bz2 fflibc-main.tar.lz fflibc-main.tar.xz fflibc-main.tar.zst fflibc-main.zip |
Initial commitmain
Diffstat (limited to 'memory/wrap/memory.h')
-rw-r--r-- | memory/wrap/memory.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/memory/wrap/memory.h b/memory/wrap/memory.h new file mode 100644 index 0000000..55af1c6 --- /dev/null +++ b/memory/wrap/memory.h @@ -0,0 +1,25 @@ +#ifndef MEMORY_WRAP_H +#define MEMORY_WRAP_H + +#include <stddef.h> + +#if __STDC_HOSTED__ == 1 +extern void _free_wrap(void *ptr); +extern void *_realloc_wrap(void *ptr, size_t size); + +extern long _strtol_wrap(char const *restrict, char **restrict, int); +extern long long _strtoll_wrap(char const *restrict, char **restrict, int); +extern double _strtod_wrap(char const *restrict, char **restrict); +extern long _wcstol_wrap(wchar_t const *restrict, wchar_t **restrict, int); +extern long long _wcstoll_wrap(wchar_t const *restrict, wchar_t **restrict, + int); +extern double _wcstod_wrap(wchar_t const *restrict, wchar_t **restrict); + +extern size_t _strxfrm_wrap(char *restrict destination, + char const *restrict source, size_t count); +extern size_t _wcsxfrm_wrap(wchar_t *restrict destination, + wchar_t const *restrict source, size_t count); + +#endif + +#endif |