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!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!portc02.blue.aol.com!portc01.blue.aol.com!newsstand.cit.cornell.edu!news.acsu.buffalo.edu!acsu.buffalo.edu!milun From: milun@cs.buffalo.edu (Davin Milun) Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals Subject: Re: Solaris 2.6 Date: 6 Dec 1996 14:31:34 GMT Organization: State University of New York at Buffalo/Computer Science Lines: 17 Distribution: inet Message-ID: <589ao6$lga@prometheus.acsu.buffalo.edu> References: <32986299.AC7@mail.esrin.esa.it> <5869r2$175$1@asgard.sprintlink.co.za> <587mc1$1dc@cucumber.demon.co.uk> <casper.32a804ad@mail.fwi.uva.nl> NNTP-Posting-Host: obelix.cs.buffalo.edu NNTP-Posting-User: milun Xref: euryale.cc.adfa.oz.au comp.unix.solaris:91613 comp.unix.bsd.misc:1701 comp.unix.internals:11481 Casper H.S. Dik <casper@fwi.uva.nl> wrote: »Does DU have a %p printf directive? Perhaps that is even on some »standards track? %p is listed as a printf directive in Harbison and Steele's 3rd Ed. "C: A Reference Manual". It notes that it's defined in ANSI C (but that few non-ANSI compilers implement it). It lists it as taking a void*, but that the modifying flags, and the output format, is "implementation defined". So, that should be the portable way of printing a pointer, regarless of type/length. Davin. -- Davin Milun Internet: milun@cs.Buffalo.EDU milun@acm.org Fax: (716) 645-3464 WWW: http://www.cs.buffalo.edu/~milun/