I'm making a program that is supposed to change certain input and leave most unchanged, and then spit out an output. I decided I should store the output in a single char[] before writing it out, so I could build on the program later, however doing this I ran into an issue. Anyway, the main.c is attached as a txt.
Changing all the stuff seems to work fine, it's just that adding the normal characters isn't working. I get warnings, and the program dies immediately. How should I go about turning the int into a char so I can add it with strcat?
Changing all the stuff seems to work fine, it's just that adding the normal characters isn't working. I get warnings, and the program dies immediately. How should I go about turning the int into a char so I can add it with strcat?
Comment