BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / master / include / stdlib.h

// Related

OrionLibC

Barry Fixing malloc heap exhaustion bug d0db5bd (2 years, 2 months ago)
#ifndef _STDLIB_H
#define _STDLIB_H

#include <stddef.h>

#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1

#ifdef __cplusplus
extern "C" {
#endif

_Noreturn void abort(void);
int atexit(void (*)(void));
int atoi(const char *);
void free(void *addr);
char *getenv(const char *);
void *malloc(size_t size);
void *calloc(size_t, size_t);
void *realloc(void *addr, size_t size);
_Noreturn void exit(int status);
int abs(int num);

#ifdef __cplusplus
}
#endif

#endif