Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!dataphone!www.nntp.primenet.com!nntp.primenet.com!newspump.sol.net!howland.erols.net!blackbush.xlink.net!unlisys!news.bb-data.de!news From: mib@ppe.bb-data.de Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals Subject: Re: printf, scanf and %p (was: Solaris 2.6) Date: 16 Dec 1996 09:04:40 +0100 Organization: BB-DATA GmbH, Berlin, Germany Lines: 21 Sender: mib@LOSIRA Distribution: inet Message-ID: <usp5652zr.fsf@ppe.bb-data.de> References: <32986299.AC7@mail.esrin.esa.it> <587mc1$1dc@cucumber.demon.co.uk> <casper.32a804ad@mail.fwi.uva.nl> <589ao6$lga@prometheus.acsu.buffalo.edu> <58bn6s$q7d$1@news.cs.tu-berlin.de> <mkl.850310924@rob.cs.tu-bs.de> <uf20cwmkan.fsf@zen.microlise.co.uk> NNTP-Posting-Host: 10.11.4.39 X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: euryale.cc.adfa.oz.au comp.unix.solaris:92660 comp.unix.bsd.misc:1829 comp.unix.internals:11638 andrewg@microlise.co.uk (Andrew Gierth) writes: > A system with which I have the misfortune to be acquainted (not Unix) > produces the following output for printf("'%p'",some_pointer): > > 'SPP:0000 :1aefQPADEV0010T00AYG1 964158 :fec0:0:158c' Ugh! > That pretty conclusively proves that %p output is not portable across > systems. Umm, err, why would anyone actually _expect_ a memory location identifier (which is, basically, what a pointer is) from one machine to work on another, let alone on a different platform? -- ----------------------------------------------------------------- Dipl.-Inform. Martin Ibert, BB-DATA GmbH, phone: +49-30-245-56582 Brunnenstraße 111, D-13355 Berlin, Germany, fax: +49-30-245-56577 --------------------------------------- mailto:mib@ppe.bb-data.de Disclaimer: "My views don't always reflect those of my employer."