v05i053: A "safe" replacement for gets()

Henry Spencer henry at utzoo.uucp
Wed Nov 23 03:09:53 AEST 1988


In article <122 at halcdc.UUCP> randy at halcdc.UUCP (randy orrison) writes:
>|>Two problems: the space after gets would kill it if it's a macro,
>|
>|Say WHAT?  Works fine on all the compilers I know of.  "Preprocessor"
>|macros don't require that you give the exact same amount of white space
>|in the invocation as you gave in the definition...

Definitions of parameterized macros ("function-like" macros in X3J11speak)
have always been required to have the "(" immediately following the
identifier.  The May draft standard requires that in the invocation, the
"(" must be "the next preprocessor token", which basically means that white
space there is okay.
-- 
Sendmail is a bug,             |     Henry Spencer at U of Toronto Zoology
not a feature.                 | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list