I want to write a function which look something like
void put(const char *label, const char *format, ...)
{
/* There is a file f open for writing */
fprintf(f, "%s:\n", label);
fprintf(f, format);
}
... and to use it something like:
put("My Label: ", "A format with number in it %i", 3);
I tried to do it, but I got 16711172 instead of 3 in my file