Warning: return from incompatible pointer type in C
Well, yes? The function is declared to return char *, but you return i1 which is the input argument and has type int *. You might mean to return the newly allocated string dum, and perhaps also fill it with the data that was read using fgets() to the separate character array input. In this case, you need to copy the data over, … Read more