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

From: Roberto E. Vargas Caballero <>
Date: Thu, 19 Dec 2013 14:39:21 +0100

> 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?


Roberto E. Vargas Caballero
Received on Thu Dec 19 2013 - 14:39:21 CET

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