Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: %p and MSC Message-ID: <17243@haddock.ima.isc.com> Date: 6 Aug 90 19:57:21 GMT References: <444@demott.COM> Reply-To: karl@kelp.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 18 In article <444@demott.COM> kdq@demott.COM (Kevin D. Quitt) writes: >Those models with mixed addressing modes (C,M) cause a problem because >it is impossible for printf to differentiate between code and data >pointers. No problem; the ANSI %p format is only intended to handle data pointers cast to `void *'. Function pointers, or uncast& data pointers, are beyond the scope of this format specifier. >Also, it seems to me that a program that tries to do anything significant >with %p is probably not really very portable anyway. Granted. Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint ________ & Of course one needn't cast an expression which is already `void *', or (because of the same-representation clause) `char *'.