On Thu, Dec 19, 2013 at 02:22:53PM +0100, Roberto E. Vargas Caballero wrote:
> I also think all the operations with fmt and end are a bit confusing
> and maybe it is a bit more clear something like this (taken from a
> personal project):

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.
I hope I made it clear now (which I'm not so sure of).

Best regards
Maurice Quennet


Reply via email to