Mingw is giving me this error:Code:char *mid(char *tString, int x1, int x2){ char *rString; int i, l; rString= (char *) malloc(sizeof(char) * x2); l = x1-1; for (i= 0; i<x2; i++) { rString[i] = tString[l]; l++; } rString[x2]= NULL; return rString; }
C:\Users\Harshvardhan\Desktop\RPL\functions.h|30|w arning: assignment makes integer from pointer without a cast [enabled by default]|
and for this line:
And possible reason/cure for this?Code:rString[x2]= NULL;