Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!news.mathworks.com!enews.sgi.com!news-feed.inet.tele.dk!sn.no!news-stkh.gsl.net!news.gsl.net!news-lond.gsl.net!news.gsl.net!dispatch.news.demon.net!demon!butterfly.epc.co.uk!not-for-mail From: andrew@epc.co.uk (Andrew Higham) Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals Subject: Re: Solaris 2.6 Date: Fri, 13 Dec 1996 11:00:41 GMT Organization: Edinburgh Portable Compilers Lines: 18 Message-ID: <850474841.17386.0@butterfly.epc.co.uk> References: <32986299.AC7@mail.esrin.esa.it> <casper.329d5a07@mail.fwi.uva.nl> <5869r2$175$1@asgard.sprintlink.co.za> <587mc1$1dc@cucumber.demon.co.uk> <589rd5$i2l@agate.berkeley.edu> <sylob50vto.fsf@tiktok.cygnus.com> <casper.32afd1f6@mail.fwi.uva.nl> Reply-To: andrew@epc.co.uk NNTP-Posting-Host: butterfly.epc.co.uk X-NNTP-Posting-Host: butterfly.epc.co.uk Mime-Version: 1.0 X-Newsreader: knews 0.9.8 Content-Type: text/plain; charset=us-ascii Xref: euryale.cc.adfa.oz.au comp.unix.solaris:92426 comp.unix.bsd.misc:1806 comp.unix.internals:11607 In article <casper.32afd1f6@mail.fwi.uva.nl>, casper@fwi.uva.nl (Casper H.S. Dik) writes: > > But all pointers can be cast to void * and back, right? So %p can be > used portably. > > (Yep, I've worked on systems where pointer casts did change the > bit pattern) > > Casper To be pedantic: you cannot cast a pointer to function to pointer to void. ------------------------------------------------------------------------ Andrew Higham Edinburgh Portable Compilers Ltd., 17 Alva Street, Edinburgh EH2 4PH, UK andrew@epc.co.uk Tel: +44 131 225 6262 ext 232 Fax: +44 131 225 6644 ------------------------------------------------------------------------