I don't know how to more simply put an integer into a string than by sprintf, and I don't know what you mean by saying "just initialize such strings"
Announcement
Collapse
No announcement yet.
C help: how do I use a string to specify a filename?
Collapse
X
-
12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
-
Typecast the integer into a string and use strcat should do the trick.(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Comment
-
itoa is not included in the stdlib.h of gcc
If you attempt to call it, it returns a compilation error about it being undefined12-17-10 Mohamed Bouazizi NEVER FORGET
Stadtluft Macht Frei
Killing it is the new killing it
Ultima Ratio Regum
Comment
-
Originally posted by KrazyHorse
I don't know how to more simply put an integer into a string than by sprintf, and I don't know what you mean by saying "just initialize such strings"
Comment
Comment