Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!uw-june!uw-entropy!dataio!bright From: bright@dataio.UUCP Newsgroups: comp.lang.c Subject: Re: Function prototypes versus open() Message-ID: <1312@dataio.Data-IO.COM> Date: Tue, 2-Jun-87 13:05:54 EDT Article-I.D.: dataio.1312 Posted: Tue Jun 2 13:05:54 1987 Date-Received: Thu, 4-Jun-87 06:11:24 EDT References: <18346@ucbvax.BERKELEY.EDU> <8042@utzoo.UUCP> <2210@hoptoad.uucp> <2619@ulysses.homer.nj.att.com> <931@wjvax.wjvax.UUCP> Reply-To: bright@dataio.UUCP (Walter Bright) Organization: Data I/O - FutureNet Corp., Redmond, WA Lines: 15 In article <931@wjvax.wjvax.UUCP> brett@wjvax.UUCP (Brett Galloway) writes: -How about functions called with function pointers? I am not that familiar -with the details of function prototyping in the standard, but will it be -possible to invoke functions with variable arguments with function pointers? -If not, that will be quite annoying (and will break an application that I -have written (under UNIX C). The secret is in the declaration: int (*fp1)(int); /* pointer to function with fixed # of arguments */ int (*fp1)(char *,...); /* pointer to function with variable arguments that returns an int */ int (*fp)(); /* obsolete */