public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "lascania at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug manual/14695] Wrong printf("%3s"...) Example --- manual subsection "12.12.6 Other Output Conversions"
Date: Fri, 12 Oct 2012 12:16:00 -0000	[thread overview]
Message-ID: <bug-14695-131-eSi7Oci6j5@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-14695-131@http.sourceware.org/bugzilla/>


http://sourceware.org/bugzilla/show_bug.cgi?id=14695

R N Alx <lascania at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #19 from R N Alx <lascania at gmail dot com> 2012-10-12 12:16:05 UTC ---
Alright !

Then take 2 minutes of your time and include an example on precision !
printf("%.5s", "0123456789")

produces:

‘01234’



Change the example about aligment from:
printf ("%3s%-6s", "no", "where");

change it to:
printf ("%10s(always)", "ON");
printf("\n");
printf ("%-10s(never)", "OFF");

produces:

‘        ON(always)’
newline
‘OFF       (never)’



And now you may stamp the bug as solved.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  parent reply	other threads:[~2012-10-12 12:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10  9:39 [Bug manual/14695] New: " lascania at gmail dot com
2012-10-10  9:43 ` [Bug manual/14695] " lascania at gmail dot com
2012-10-10  9:46 ` lascania at gmail dot com
2012-10-10 10:01 ` schwab@linux-m68k.org
2012-10-10 10:28 ` lascania at gmail dot com
2012-10-10 10:42 ` schwab@linux-m68k.org
2012-10-10 10:58 ` lascania at gmail dot com
2012-10-10 11:00 ` lascania at gmail dot com
2012-10-10 11:06 ` aj at suse dot de
2012-10-10 11:16 ` lascania at gmail dot com
2012-10-10 11:59 ` schwab@linux-m68k.org
2012-10-10 12:16 ` lascania at gmail dot com
2012-10-10 12:33 ` schwab@linux-m68k.org
2012-10-11 11:31 ` lascania at gmail dot com
2012-10-11 11:53 ` schwab@linux-m68k.org
2012-10-11 13:18 ` aj at suse dot de
2012-10-11 14:57 ` lascania at gmail dot com
2012-10-11 15:04 ` lascania at gmail dot com
2012-10-11 16:15 ` schwab@linux-m68k.org
2012-10-11 16:51 ` ldv at altlinux dot org
2012-10-11 17:02 ` schwab@linux-m68k.org
2012-10-12 12:16 ` lascania at gmail dot com [this message]
2012-10-12 16:22 ` [Bug manual/14695] no example on printf precision " ldv at altlinux dot org
2014-06-17  4:04 ` fweimer at redhat dot com

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=bug-14695-131-eSi7Oci6j5@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /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: link
Be 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).