07-24-2023, 03:39 AM
When I declare a `char *` to a fixed string and reuse the pointer to point to another string
/* initial declaration */
char *src = "abcdefghijklmnop";
.....
/* I get the "warning: assignment makes integer from pointer without a cast" */
*src ="anotherstring";
I tried to recast the pointer but no success.
/* initial declaration */
char *src = "abcdefghijklmnop";
.....
/* I get the "warning: assignment makes integer from pointer without a cast" */
*src ="anotherstring";
I tried to recast the pointer but no success.