24 lines
483 B
C
24 lines
483 B
C
#ifndef _STDLIB_H
|
|
#define _STDLIB_H
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
void *malloc(size_t n);
|
|
void *calloc(size_t nmemb, size_t size);
|
|
void *realloc(void *ptr, size_t n);
|
|
void free(void *p);
|
|
|
|
int abs(int n);
|
|
long labs(long n);
|
|
int atoi(const char *s);
|
|
|
|
void exit(int code) __attribute__((noreturn));
|
|
void abort(void) __attribute__((noreturn));
|
|
|
|
typedef void (*__atexit_fn)(void);
|
|
int atexit(__atexit_fn fn);
|
|
|
|
#define EXIT_SUCCESS 0
|
|
#define EXIT_FAILURE 1
|
|
|
|
#endif
|