On Thu, Dec 19, 2013 at 10:49:03PM +, sin wrote:
> 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
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
On Wed, Dec 18, 2013 at 11:36 PM, Maurice Quennet wrote:
> Hello dev@,
>
Hello mjq@,
> diff --git a/Makefile b/Makefile
> index 2a72a1c..e93f570 100644
[...]
> +void
> +printfmt(void)
> +{
> + int e;
> + long l;
> + double d;
> + char c, f, *tmp;
> +
> + if (*end ==
On 2013-12-18 21:06:08 -0600, William Giokas wrote:
> People on this list need to learn about 'git format-patch' and 'git
> send-email'...
...and about not quoting the entirety of the last message as context
when it doesn't provide any. :-)
pgpIqSRxp_FhA.pgp
Description: PGP signature
On Wed, Dec 18, 2013 at 11:36:12PM +0100, Maurice Quennet wrote:
> Hello dev@,
>
> I was searching for a programming project so I looked into TODO and
> picked printf. I hacked something up a few weeks ago, but I didn't
> publish it until now, since I didn't have a man page yet and I was a
> litt
Hello dev@,
I was searching for a programming project so I looked into TODO and
picked printf. I hacked something up a few weeks ago, but I didn't
publish it until now, since I didn't have a man page yet and I was a
little busy (a patch follows at the end of the mail).
In the following I will tel
16 matches
Mail list logo