I am currently getting this compile-time warning:
warning: assignment makes pointer from integer without a cast
for the following line of code:
char* msg = my_vect2str(argv[3]);
Please note, my my_vect2str
function has the return type char*
as seen in the declaration:
char* my_vect2str(char** x);
And obviously, by the common standard, argv
is defined as char** argv
.
I'm not quite sure why this issue is occurring.