2022-12-25 08:58:00 +00:00
|
|
|
#ifndef _STDLIB_H
|
|
|
|
#define _STDLIB_H 1
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-12-25 11:23:09 +00:00
|
|
|
#include <libclayer.h>
|
2022-12-25 08:58:00 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define EXIT_FAILURE 1
|
|
|
|
|
2022-12-25 11:23:09 +00:00
|
|
|
int LIBCLAYER(atoi)(const char *str);
|
2022-12-25 08:58:00 +00:00
|
|
|
|
2022-12-25 11:23:09 +00:00
|
|
|
void LIBCLAYER(abort)() __attribute__((noreturn));
|
|
|
|
void LIBCLAYER(exit)(int status) __attribute__((noreturn));
|
2022-12-25 08:58:00 +00:00
|
|
|
|
2022-12-25 11:23:09 +00:00
|
|
|
void *LIBCLAYER(calloc)(size_t nmemb, size_t size);
|
|
|
|
void LIBCLAYER(free)(void *ptr);
|
|
|
|
void *LIBCLAYER(malloc)(size_t size);
|
|
|
|
void *LIBCLAYER(realloc)(void *ptr, size_t size);
|
2022-12-25 08:58:00 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|