Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Even more problems with lcc-win Date: Sun, 23 Apr 2017 16:52:06 -0700 Organization: None to speak of Lines: 41 Message-ID: References: <5f2dnZm7l7YU8UTFnZ2dnUU7-X3NnZ2d@posted.internetamerica> <18c5460e-d14a-4989-a03a-fb3317d7038b@googlegroups.com> <90fc9bf0-4d59-4908-baef-eca0b670b603@googlegroups.com> <4de6ee87-6707-4f61-942a-d0cb1f19eaa8@googlegroups.com> <81979333-35cc-4103-95c3-289150ac81c3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="b06baaefdd2d8c25f7a310fe1662b016"; logging-data="29722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kyIs1g0/QDITqC7tW4klm" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:xs8RX+hvuGW8aKMmO++Sn/pq9SI= sha1:tz8VbrJO1kX9ARpu/oKber1Frdk= Xref: csiph.com comp.lang.c:108381 supercat@casperkitty.com writes: > On Sunday, April 23, 2017 at 1:08:43 PM UTC-5, Bart wrote: >> > ! If a flag were added to suppress all output from a conversion, >> > the only additional feature that would be needed to allow >> > rearrangement of arguments would be a "rewind" function. If a ! >> > flag meant "suppress output" and a %^ flag would rewind the >> > argument list before processing the argument... > >> Yet another little language that someone needs to know to understand >> what is purportedly C! (On top of the CPP, makefiles, compiler options >> for defining your own dialect, and miscellaneous external scripts). >> >> That might be a compact way of achieving a certain result, but it's >> hard to read and maintain. > > The "Positional features" of POSIX effectively define a different > language for printf specifiers which is incompatible with the normal > one, I don't believe it's incompatible. > since printf format strings which use any positional arguments cannot > use any non-positional arguments. Standard format strings can't use positional arguments at all. Perhaps you meant something different by "incompatible", but I believe the POSIX extension applies meanings only to strings that would cause printf to have undefined behavior in ISO C. [...] You format your posts with lines up to 80 columns, which means when I quote you I often have to reformat to avoid warnings. Can you please format to, say, 72 or so columns to allow for quoting? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"