//--- // gint:std:stdlib - a few functions provided by gint //--- #ifndef GINT_STD_STDLIB #define GINT_STD_STDLIB #include /* 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); #define RAND_MAX 0x7fffffff /* srand(): Seed the PRNG */ void srand(unsigned int seed); /* rand(): Generate a pseudo-random number between 0 and RAND_MAX */ int rand(void); /* atoi(): Convert string into decimal */ extern int atoi(const char *restrict s); #endif /* GINT_STD_STDLIB */