a C standard library for fx Casio calculators
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
266 B

#include <stdlib.h>
#include <string.h>
void *calloc(size_t nmemb, size_t size)
unsigned int total_size;
if(__builtin_umul_overflow(nmemb, size, &total_size))
return NULL;
void *mem = malloc(total_size);
if(mem) memset(mem, 0, total_size);
return mem;