Re: [dwm] Re: [PATCH] fprintf where fputs is sufficiant

From: Szabolcs Nagy <>
Date: Sun, 15 Feb 2009 19:43:47 +0100

On 2/15/09, Marcin Cieslak <> wrote:
> Enno "Gottox" Boland <> wrote:
>> - fprintf(stderr, "warning: no locale support\n");
>> + fputs("warning: no locale support\n", stderr);
> Depends on a code style one likes. To quote FreeBSD's style(9):
> Use printf(3), not fputs(3), puts(3), putchar(3), whatever; it is
> faster
> and usually cleaner, not to mention avoiding stupid bugs.

yes, depends on who you ask, from dietlibc FAQ:

Q: When linking binaries, I get warnings about stdio and printf all the
   time. What gives?
A: Since the diet libc was written to make writing small programs
   possible, it also tries to assist in the process of seeing causes of
   bloat. Premier causes for bloat are stdio and the printf family of
Received on Sun Feb 15 2009 - 18:43:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Feb 15 2009 - 19:00:03 UTC