Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!sun-barr!texsun!texbell!bigtex!natinst!sequoia!rpp386!jfh From: jfh@rpp386.Dallas.TX.US (John F. Haugh II) Newsgroups: comp.std.c Subject: Prototypes and ID lists Message-ID: <16803@rpp386.Dallas.TX.US> Date: 17 Jul 89 18:14:08 GMT Organization: River Parishes Programming, Plano TX Lines: 32 Greetings. I have a question about function declarations. Suppose I prototype a function with extern struct passwd *getpwuid (uid_t uid); and later in the same compilation unit have a declaration struct passwd * getpwuid (uid) uid_t uid; { [ stuff ] } Is my [ supposedly ] ANSI-compliant compiler free to warn me that getpwuid() has been redefined? Is this just a warning or should this be a fatal error? And the final trick question - was this ever illegal? The relevant section is [ I think, dyslexia not withstanding ] 3.7.1. It is unclear, except for stating that you may use an identifier list or a type and identifier list. Relevant draft information - this is the January 1989 draft. -- John F. Haugh II +-Quote of the month club: ------------ VoiceNet: (512) 832-8832 Data: -8835 | "Computer security is to information InterNet: jfh@rpp386.cactus.org | control as a chastity belt is to UucpNet : !bigtex!rpp386!jfh +- birth control" -- Doug Steves --