Article View: comp.std.c
Article #2893sscanf sequential assignment?
From: Stephen R. van den Berg
Date: Fri, 17 May 1991 10:13
Date: Fri, 17 May 1991 10:13
17 lines
1126 bytes
1126 bytes
Does the Standard say anything about a guaranteed assignment sequence
for sscanf?
i.e.: char *str,*p,dest[80];
sscanf(str," %n%s %n",&p,dest,&p);
Will p guaranteed to get it's value from the second '%n' if 'str'
doesn't point to an empty or all whitespace string?
Since we're at it anyway, what about backward portability with older
libraries, do all old libs support the '%n' identifier too?
--
Sincerely, berg@marvin.e17.physik.tu-muenchen.de
Stephen R. van den Berg.
"I code it in 5 min, optimize it in 90 min, because it's so well optimized:
it runs in only 5 min. Actually, most of the time I optimize programs."
Technical Details
Message-ID:
<4325@rwthinf.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!msi.umn.edu!math.fu-berlin.de!unido!rwthinf!marvin.e17.physik.tu-muenchen.de!bergShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!msi.umn.edu!math.fu-berlin.de!unido!rwthinf!marvin.e17.physik.tu-muenchen.de!berg From: berg@marvin.e17.physik.tu-muenchen.de (Stephen R. van den Berg) Newsgroups: comp.std.c Subject: sscanf sequential assignment? Message-ID: <4325@rwthinf.UUCP> Date: 17 May 91 10:13:11 GMT Sender: news@rwthinf.UUCP Lines: 17