-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathstdlib.h
More file actions
46 lines (35 loc) · 1.45 KB
/
stdlib.h
File metadata and controls
46 lines (35 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _GHLIBCPP_STDLIB
#define _GHLIBCPP_STDLIB
typedef unsigned long size_t;
void *calloc(size_t num, size_t size);
void free(void *ptr);
void *malloc(size_t size);
void *realloc(void *ptr, size_t size);
void *aligned_alloc(size_t, size_t);
[[noreturn]] void _Exit(int status) noexcept;
[[noreturn]] void abort(void) noexcept;
[[noreturn]] void quick_exit(int status) noexcept;
extern "C++" int atexit(void (*f)(void)) noexcept;
extern "C++" int at_quick_exit(void (*f)(void)) noexcept;
void exit(int code);
int system(const char *command);
char *getenv(const char *name);
int setenv(const char *, const char *, int);
int atoi(const char *str);
long int atol(const char *str);
long long int atoll(const char *str);
double atof(const char *str);
long int strtol(const char *str, char **endptr, int base);
long long int strtoll(const char *str, char **endptr, int base);
unsigned long int strtoul(const char *str, char **endptr, int base);
unsigned long long int strtoull(const char *str, char **endptr, int base);
double strtod(const char *str, char **endptr);
float strtof(const char *str, char **endptr);
long double strtold(const char *str, char **endptr);
int rand(void);
int mblen (const char *, size_t);
int mbtowc (wchar_t *__restrict, const char *__restrict, size_t);
int wctomb (char *, wchar_t);
size_t mbstowcs (wchar_t *__restrict, const char *__restrict, size_t);
size_t wcstombs (char *__restrict, const wchar_t *__restrict, size_t);
#endif // _GHLIBCPP_STDLIB