d9c32b2b05
Since Memallox's newlib port is currently unstable, gint has to provide some standard functions on its own. Instead of a single <gint/std.h> header, this commit makes a gint/std directory containing headers under standard names.
23 lines
482 B
C
23 lines
482 B
C
//---
|
|
// gint:std:stdlib - a few <stdlib.h> functions provided by gint
|
|
//---
|
|
|
|
#ifndef GINT_STD_STDLIB
|
|
#define GINT_STD_STDLIB
|
|
|
|
#include <stddef.h>
|
|
|
|
/* malloc(): Allocate dynamic memory */
|
|
void *malloc(size_t size);
|
|
|
|
/* free(): Free dynamic memory */
|
|
void free(void *ptr);
|
|
|
|
/* calloc(): Allocate and initialize dynamic memory */
|
|
void *calloc(size_t nmemb, size_t size);
|
|
|
|
/* realloc(): Reallocate dynamic memory */
|
|
void *realloc(void *ptr, size_t size);
|
|
|
|
#endif /* GINT_STD_STDLIB */
|