24 lines
438 B
C
24 lines
438 B
C
#pragma once
|
|
|
|
#include "stddef.h"
|
|
#include "stdint.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *malloc(size_t size);
|
|
void free(void *ptr);
|
|
void *calloc(size_t num, size_t size);
|
|
void *realloc(void *ptr, size_t size);
|
|
|
|
void abort(void);
|
|
void exit(int status);
|
|
int atoi(const char *nptr);
|
|
static inline int abs(int x) { return x < 0 ? -x : x; }
|
|
static inline long labs(long x) { return x < 0 ? -x : x; }
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|