mirror of
https://github.com/tailix/libclayer.git
synced 2024-11-06 10:56:10 -05:00
30 lines
431 B
C
30 lines
431 B
C
|
#ifndef _STDLIB_H
|
||
|
#define _STDLIB_H 1
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
#define EXIT_SUCCESS 0
|
||
|
#define EXIT_FAILURE 1
|
||
|
|
||
|
int atoi(const char *str);
|
||
|
|
||
|
__attribute__((noreturn))
|
||
|
void abort();
|
||
|
__attribute__((noreturn))
|
||
|
void exit(int status);
|
||
|
|
||
|
void *calloc(size_t nmemb, size_t size);
|
||
|
void free(void *ptr);
|
||
|
void *malloc(size_t size);
|
||
|
void *realloc(void *ptr, size_t size);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|