I am trying to create a char array in C, to fill it with the digits of an int, but the int can be of any number of digits.
I\'m using a created function called
try something like:
char* buffer =(char *)malloc(getDigits(number)*sizeof(char));
malloc and calloc are used to dinamic allocation.