Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.msdos.programmer > #23
| From | Rod Pemberton <invalid@lkntrgzxc.com> |
|---|---|
| Newsgroups | alt.msdos.programmer, comp.os.msdos.programmer |
| Subject | Re: C scanf() |
| Date | 2019-03-01 16:58 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <q5c9p8$1glp$3@gioia.aioe.org> (permalink) |
| References | <fv0g7eta1mngc8stdge4p3k87t1kpem32v@4ax.com> <q5asup$s8b$1@gioia.aioe.org> <alpine.BSF.2.02.1903010822290.33351@frieza.hoshinet.org> <slki7ehmsas3padn33orensjs8io2cebo0@4ax.com> <q5bn7f$q78$1@gioia.aioe.org> |
Cross-posted to 2 groups.
On Fri, 1 Mar 2019 17:39:01 +0100 "R.Wieser" <address@not.available> wrote: > > I only want to present an alternate view of scanf() > > All you do is /claim/ that its possible, without offering anything to > support it. Whats stoping you ? > He mentioned pamo.c in the first post in this thread, but he didn't post it in this thread. He posted pamo.c in "PC-MOS 2012 date bug fix" thread: https://groups.google.com/d/msg/comp.os.msdos.programmer/_sIrf_P3k2c/MMiD6tzPBwAJ In pamo.c, he's using this format string for scanf(): char fmt[] = "%lx: %x %x%*[ \t]%1[^\n]"; It appears to conform to ANSI C. In it he uses the [ conversion, along with field width specifications, which allows him to specify specific characters to search for, specifically any quantity of spaces and tabs, and then one or more characters except a newline. This is probably far easier than using strtok(). However, portability and compliance of string format specifications can be questionable, especially so for low use formats such as this one. As for whether it does what he claims, IDK. I've serious issues with ANSI C compliant format strings working correctly with different compilers and for different environments. I.e., it might or it might not, even if correct C code. Rod Pemberton -- Apple opposes "glorifying violence" and "dehumanizing language". Yet, it manufactures products in China which commits crimes against humanity.
Back to alt.msdos.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
C scanf() T. Ment <triflemenot@protocol.invalid> - 2019-02-28 16:43 +0000
Re: C scanf() T. Ment <t.ment@protocol.invalid> - 2019-02-28 22:07 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-01 10:10 +0100
Re: C scanf() Steve Nickolas <usotsuki@buric.co> - 2019-03-01 08:22 -0500
Re: C scanf() T. Ment <t.ment@protocol.invalid> - 2019-03-01 16:25 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-01 17:39 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 18:08 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 18:22 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 19:04 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 19:15 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 19:20 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 19:31 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 21:29 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 21:53 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 22:20 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 22:48 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 23:34 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 23:41 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-02 00:09 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 00:14 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-02 00:19 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 00:32 +0000
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-02 00:44 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 09:55 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 15:54 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 19:43 +0100
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-02 18:58 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 20:16 +0100
Re: C scanf() "Kerr-Mudd,John" <notsaying@invalid.org> - 2019-03-03 08:08 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-03 10:05 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-03 14:56 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 19:06 +0000
Re: C scanf() Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2019-03-02 20:12 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 19:23 +0000
Re: C scanf() Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2019-03-02 21:39 +0100
Re: C scanf() "Gene Buckle" <gene.buckle@bbs.retroarchive.org.remove-zcb-this> - 2019-03-05 08:53 -0800
Re: C scanf() "Gene Buckle" <gene.buckle@bbs.retroarchive.org.remove-zcb-this> - 2019-03-05 08:53 -0800
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-05 17:45 +0000
Re: C scanf() "Kerr-Mudd,John" <notsaying@invalid.org> - 2019-03-05 19:59 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 20:23 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 19:53 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 21:50 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 21:19 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 22:46 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 22:09 +0000
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-02 17:05 -0500
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 22:43 +0000
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-02 17:07 -0500
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-03 07:44 +0100
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-03 02:20 -0500
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-03 09:57 +0100
Re: C scanf() Steve Nickolas <usotsuki@buric.co> - 2019-03-03 02:22 -0500
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 09:39 +0100
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-01 16:58 -0500
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 22:39 +0000
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-01 21:10 -0500
Re: C scanf() rridge@csclub.uwaterloo.ca (Ross Ridge) - 2019-03-01 22:46 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-01 22:55 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-01 21:15 +0100
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-01 16:58 -0500
Re: C scanf() T. Ment <t.ment@protocol.invalid> - 2019-03-01 22:30 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 09:29 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 16:10 +0000
Re: C scanf() "R.Wieser" <address@not.available> - 2019-03-02 19:54 +0100
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-02 19:12 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-04 16:57 +0000
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-04 18:59 +0000
Re: C scanf() Rod Pemberton <invalid@lkntrgzxc.com> - 2019-03-04 23:52 -0500
Re: C scanf() src153 <src153@protocol.invalid> - 2019-03-05 15:56 +0000
csiph-web