Re: [OT] fputc vs putc Re: horrible disk thorughput on itanium

From: H. Peter Anvin (hpa@zytor.com)
Date: Sun Dec 09 2001 - 04:27:51 EST


Followup to: <m1d71pw51p.fsf@frodo.biederman.org>
By author: ebiederm@xmission.com (Eric W. Biederman)
In newsgroup: linux.dev.kernel
>
> fputc is a function putc is a macro because the overhead of a function call
> in writing a character has always been a problem...
>

putc() is frequently defined as

#define putc(__C) fputc((__C), stdout)

... or some equivalent; I think the best way to say it's that it's a
shorthand.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:14 EST