[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
printf bug
From: |
Michael S. Fischer |
Subject: |
printf bug |
Date: |
Thu, 5 Oct 2000 11:16:05 -0700 |
printf is broken (at least according to the man page description of
zero-padding) under glibc 2.1.92 and 2.1.3:
#include <stdio.h>
main (int argc, char *argv[]) {
printf("%018s\n", "foo");
}
The output should be
000000000000000foo
but instead I get
foo
Other OS' C libraries (e.g. Solaris) appear to return the expected output.
--
Michael S. Fischer / michael at auctionwatch.com /
http://www.auctionwatch.com
Operations Team Lead, AuctionWatch.com Inc. / Phone: +1 650 808 5842
- printf bug,
Michael S. Fischer <=