Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c Subject: Re: v05i053: A "safe" replacement for gets() Message-ID: <468@auspex.UUCP> Date: 17 Nov 88 17:22:12 GMT References: <674@quintus.UUCP> <117@halcdc.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 10 >|#define gets(s) fgets(s, sizeof s, stdin) ... > gets (s); >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; if your compiler requires this, get it fixed!