Re: [dev] [sbase] printf(1)

From: Maurice Quennet <mjq_AT_web.de>
Date: Thu, 19 Dec 2013 14:33:59 +0100

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
Received on Thu Dec 19 2013 - 14:33:59 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 19 2013 - 14:36:06 CET