I\'m getting this error:
warning: incompatible implicit declaration of built-in function ‘malloc’
I am trying to do this:
You need to #include . Otherwise it's defined as int malloc() which is incompatible with the built-in type void *malloc(size_t).
#include
int malloc()
void *malloc(size_t)