public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Joseph S. Myers" <jsm28@cam.ac.uk> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c/6547: misleading printf '$' format Date: Fri, 03 May 2002 06:56:00 -0000 [thread overview] Message-ID: <20020503135601.32156.qmail@sources.redhat.com> (raw) The following reply was made to PR c/6547; it has been noted by GNATS. From: "Joseph S. Myers" <jsm28@cam.ac.uk> To: <peio@blutch.dyndns.org> Cc: <gcc-gnats@gcc.gnu.org>, <prpetit@canal-plus.com>, <gcc-bugs@gcc.gnu.org> Subject: Re: c/6547: misleading printf '$' format Date: Fri, 3 May 2002 14:47:23 +0100 (BST) On 3 May 2002 peio@blutch.dyndns.org wrote: > With both v2.95 and 3.0, there is a warning on "%.*1$s": > "warning: unknown conversion type character '1' in format" > >How-To-Repeat: > #include <stdio.h> > > int main (int argc, char *argv[]) { > printf("%.*s == %2$.*1$s\n", argc, *argv); You can't mix $ and non-$ formats in one format string; see the Single Unix Specification. Once a non-$ format is detected, $ operand numbers are no longer checked for. Note that "%." can only be the start of a non-$ format. -- Joseph S. Myers jsm28@cam.ac.uk
next reply other threads:[~2002-05-03 13:56 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-03 6:56 Joseph S. Myers [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-08-23 13:16 jsm28 2002-05-03 13:26 Joseph S. Myers 2002-05-03 7:26 Pierre-Canalsat PETIT 2002-05-03 6:06 peio
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020503135601.32156.qmail@sources.redhat.com \ --to=jsm28@cam.ac.uk \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).