using the standard function in atoi() wont work. it gives me an error that says "assignment makes pointer from integer without a cast"
this is sample of the code..
struct integer* convert_integer(char* stringInt)
{
struct integer* convertedInt_1;
char* stringArray3 = (char *) malloc (sizeof(char));;
free(stringArray3);
stringArray3 = stringInt;
convertedInt_1->digits = atoi(stringArray3);
stringArray4 = stringInt;
so what is the proper way to convert this dynamically allocated string array into a dynamicallly allocated integer array