*BSD News Article 85099


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!feed1.news.erols.com!howland.erols.net!news.mathworks.com!fu-berlin.de!news.gtn.com!genesis.westend.com!news.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!tubsibr!rob.cs.tu-bs.de!mkl
From: mkl@rob.cs.tu-bs.de (Mario Klebsch)
Newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals
Subject: printf, scanf and %p (was: Solaris 2.6)
Date: 11 Dec 96 13:28:44 GMT
Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
Lines: 15
Distribution: inet
Message-ID: <mkl.850310924@rob.cs.tu-bs.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>
X-Newsreader: NN version 6.5.0 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:92206 comp.unix.bsd.misc:1773 comp.unix.internals:11568

js@cs.tu-berlin.de (Joerg Schilling) writes:

>You forget to say, that %p is guaranteed to produce an output format
>that may be read in again with *scanf(). So it is really portable.

Is scanf("%p") on a system of type A supposed to read in the output of
printf("%p) on a system of type B? Someone mentioned, the output of
printf("%p") is implementation defined, which would lead to the
conclusion, that is is not true.

73, Mario
--
Mario Klebsch, DG1AM, M.Klebsch@tu-bs.de		+49 531 / 391 - 7457
Institut fuer Robotik und Prozessinformatik der TU Braunschweig
Hamburger Strasse 267, 38114 Braunschweig, Germany