Path: utzoo!attcan!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: void * and pointers to functions Message-ID: <338@taumet.com> Date: 26 Jul 90 15:12:38 GMT References: <1990Jul25.213257.7872@mdivax1.uucp> Organization: Taumetric Corporation, San Diego Lines: 15 In article <1990Jul25.213257.7872@mdivax1.uucp>: >After reading the relevant parts of K&R II it would appear that a variable of >type void * may legally contain a pointer to a function as well as a >pointer to any of the various data types. Is this correct? No. ANSI C Standard section 3.2.2.3 says: "A pointer to void may be converted to or from a pointer to any incomplete or object type." An "object" is a data object, not a function. Function pointers are everywhere discussed separately. -- Steve Clamage, TauMetric Corp, steve@taumet.com