On Thu, Dec 19, 2013 at 10:18:34PM +, Rob wrote:
> printf '%f\n' 2
>
> If you "throw it into the standard library's printf", even forgetting
> about how we do that, you'd still interpret 2 as an int, when printf
> expects a float. And that's only the beginning, what about %n, or not
> passing
Roberto E. Vargas Caballero, Thu, 19 Dec 2013:
I'm confused about what you're trying to accomplish here.
How about you just copy the format part from the for loop up there and
throw it into the standard library's printf?
I agree!
This strongly smells like NiH-syndrome. Considering we have suck
> That's what I did at first, but I forgot the exact reason why I changed
> it :P I probably found kind of wasteful to call putchar() for every
> character, but then again, it probably doesn't matter since arguments
> for printf usually aren't that long.
Remember that putchar is a macro, and it o
On Thu, Dec 19, 2013 at 02:39:21PM +0100, Roberto E. Vargas Caballero wrote:
> 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?
That's what I did at first, but I forgot the e
> 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').
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
> > I'm confused about what you're trying to accomplish here.
> > How about you just copy the format part from the for loop up there and
> > throw it into the standard library's printf?
> >
>
> I agree!
> This strongly smells like NiH-syndrome. Considering we have suckless
> standard libraries li
On Thu, Dec 19, 2013 at 08:50:46AM +0100, Martti Kühne wrote:
> I'm confused about what you're trying to accomplish here.
> How about you just copy the format part from the for loop up there and
> throw it into the standard library's printf?
That's what I'm doing. You still have to figure out, wh
On 2013-12-19, at 10:47, FRIGN wrote:
>> Considering we have suckless standard libraries like uClibc,
>
> Whoops, I meant dietlibc. I kinda mixed up the names.
musl FTW!
-Truls
On Thu, 19 Dec 2013 10:44:52 +0100
FRIGN wrote:
> Considering we have suckless standard libraries like uClibc,
Whoops, I meant dietlibc. I kinda mixed up the names.
--
FRIGN
On Thu, 19 Dec 2013 08:50:46 +0100
Martti Kühne wrote:
>
> I'm confused about what you're trying to accomplish here.
> How about you just copy the format part from the for loop up there and
> throw it into the standard library's printf?
>
> cheers!
> mar77i
>
I agree!
This strongly smells like
11 matches
Mail list logo