Path: utzoo!attcan!uunet!lll-winken!ames!haven!decuac!felix!info-ultrix From: naftoli@aecom.yu.edu (Robert N. Berlinger) Newsgroups: comp.unix.ultrix Subject: Re: ULTRIX-32 VAX C compiler bug Message-ID: <88437@felix.UUCP> Date: 22 Mar 89 18:37:49 GMT References: <85725@felix.UUCP> Sender: info-ultrix@felix.UUCP Reply-To: naftoli@aecom.yu.edu (Robert N. Berlinger) Organization: Albert Einstein College of Medicine, NY Lines: 27 Approved: zemon@felix.UUCP Reply-Path: Reply-to: naftoli@aecom.yu.edu (Robert N. Berlinger) In article <85725@felix.UUCP>, kjones@talos.UUCP (Kyle Jones) writes: > Anyone know why vcc(1) gripes about pointers to functions being used > as functions. Example: > main() > { > int atoi(); > int (*ascii_to_integer)() = atoi; > > ascii_to_integer("3"); > } The function call should be (*ascii_to_integer)("3"); K&R has an example, check out page 116, 1st edition, or page 120, 2nd edition. Robert -- Robert N. Berlinger |Domain: naftoli@aecom.yu.edu Supervisor of Systems Support |UUCP: {uunet,philabs,phri}!aecom!naftoli Scientific Computing Center |CompuServe: 73047,741 GEnie: R.Berlinger Albert Einstein College of Medicine |Pan: berlinger