This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/14695] Wrong printf("%3s"...) Example --- manual subsection "12.12.6 Other Output Conversions"


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]