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

From: Marcin Cieslak <saper_AT_SYSTEM.PL>
Date: Sun, 15 Feb 2009 16:19:50 +0000 (UTC)

Enno "Gottox" Boland <gottox_AT_gmail.com> wrote:
> I think fprintf is unneeded here.

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

-- 
              << Marcin Cieslak // saper_AT_system.pl >>
Received on Sun Feb 15 2009 - 16:19:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Feb 15 2009 - 16:24:06 UTC