diff options
author | max99x <max99x@gmail.com> | 2011-07-23 06:58:49 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-24 05:25:45 +0300 |
commit | 5aea0ba8784bc385e52e769f8e90df5fcd833a7a (patch) | |
tree | 9f3c70018d11fbe67d5d800e89e35e4f8207f784 /tests/printf/test.c | |
parent | a48bfddf2b9f9d6f6b6ee5dec41004afed3a71ba (diff) |
Added _formatString() special-case for null values (similar to glibc).
Diffstat (limited to 'tests/printf/test.c')
-rw-r--r-- | tests/printf/test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/printf/test.c b/tests/printf/test.c index d12e0d2e..efd9d087 100644 --- a/tests/printf/test.c +++ b/tests/printf/test.c @@ -14,6 +14,8 @@ int main() { printf("floats: %4.2f %+.0e %E\n", 3.1416, 3.1416, 3.1416); printf("Width trick: %*d\n", 5, 10); printf("%s %%\n", "A string"); + printf("Null string: %7s\n", NULL); + printf("Null pointer: %p\n", NULL); printf("%lf\n", INFINITY); printf("%lF\n", INFINITY); printf("%lf\n", -INFINITY); |