> I admit, printfmt() needs some cleanup. fmt is supposed to point at the
> begining of the conversion string ('%' for a conversion specifier and
> '\' for a escape sequence) and end, well, points at the end of the
> conversion string (one character after conversion characters like 'd' or
> 's'). end is necessary, so you can set "*end = '\0'", otherwise fmt
> will include everything up unitl to the end of the complete format
> string.
You only have to use putchar for every character (except in the case
of the format specifiers), and then you don't need the enp pointer, or
am I missing something else?
Regards,
--
Roberto E. Vargas Caballero
Received on Thu Dec 19 2013 - 14:39:21 CET