M
Martijn
Hi,
I think I can best ask my question by example. I may be overlooking
something, but this is like what I have:
#define ID1 'i'
#define ID2 'd'
#define ID3 'n'
This is what I want in my output file:
i=100:d=200:n=300
This is what I do:
sprintf("%c=%d:%c=%d:%c=%d\n",
ID1, 100,
ID2, 200,
ID3, 300);
That means that the characters are inserted run-time. Is there a way to
make them part of the string-constant so that I can put them into my string
compile-time?
Sorry if the question is formulated somewhat strange Thanks for any
help!
I think I can best ask my question by example. I may be overlooking
something, but this is like what I have:
#define ID1 'i'
#define ID2 'd'
#define ID3 'n'
This is what I want in my output file:
i=100:d=200:n=300
This is what I do:
sprintf("%c=%d:%c=%d:%c=%d\n",
ID1, 100,
ID2, 200,
ID3, 300);
That means that the characters are inserted run-time. Is there a way to
make them part of the string-constant so that I can put them into my string
compile-time?
Sorry if the question is formulated somewhat strange Thanks for any
help!