Files

23 lines
482 B
C

#ifndef CONFORMANCE_STDLIB_H
#define CONFORMANCE_STDLIB_H
#include <stddef.h>
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define RAND_MAX 32767
void exit(int status);
void _exit(int status);
void abort(void);
int atoi(const char *s);
int abs(int v);
/* Bounded allocator in the 64 KiB gap between the linker RAM region and the
* result block (see shim.c); free is a no-op. */
void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void free(void *ptr);
#endif