This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: patch to suggest putc/fputs over printf("string") or printf("\n")
- To: ghazi at caip dot rutgers dot edu, law at cygnus dot com
- Subject: Re: patch to suggest putc/fputs over printf("string") or printf("\n")
- From: mrs at wrs dot com (Mike Stump)
- Date: Tue, 12 Jan 1999 23:24:27 -0800
- Cc: egcs at cygnus dot com
> Date: Tue, 12 Jan 1999 02:21:10 -0700
> From: Jeffrey A Law <law@hurl.cygnus.com>
> One location would be at the source level in the preprocessor.
Unless there is something about printf being a macro, I think one can
have a printf member in a user defined class, and figuring this out in
cpp will be hard:
class A { void foo() { printf("Hi ya\n"); } printf(const char *); };
:-(