What am I doing wrong here?Code:sprintf((char *)magval, "P%c", ch); printf("magic no: %s\n", *magval);
magval is declared as char *magval (in sprintf()my compiler seems to want the cast for some reason)
But ultimately I want to print the contents that magval points to. How do I do this?
This is really ticking me off right now.