Path: utzoo!attcan!uunet!mcvax!kth!enea!maxim!prc From: prc@maxim.ERBE.SE (Robert Claeson) Newsgroups: comp.lang.c Subject: Re: AT&T C compilers Summary: C++ supports both func() and func(void). Keywords: C compiler,bug? Message-ID: <513@maxim.ERBE.SE> Date: 27 Feb 89 23:22:02 GMT References: <569@marob.MASA.COM> <1071@auspex.UUCP> <9726@smoke.BRL.MIL> Organization: ERBE DATA AB Lines: 13 In article <9726@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: > Old C++ did not use func(void) but rather just func(). > This may be changing toward ANSI C style, but I don't know for sure. At least the AT&T C++ Translator 1.1 does support both styles. A function taking no arguments can be declared as either func() or func(void). -- Robert Claeson, ERBE DATA AB, P.O. Box 77, S-175 22 Jarfalla, Sweden Tel: +46 (0)758-202 50 Fax: +46 (0)758-197 20 EUnet: rclaeson@ERBE.SE uucp: {uunet,enea}!erbe.se!rclaeson ARPAnet: rclaeson%ERBE.SE@uunet.UU.NET BITNET: rclaeson@ERBE.SE