aboutsummaryrefslogtreecommitdiff
path: root/tests/printf/test.c
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-23 06:58:49 +0300
committermax99x <max99x@gmail.com>2011-07-24 05:25:45 +0300
commit5aea0ba8784bc385e52e769f8e90df5fcd833a7a (patch)
tree9f3c70018d11fbe67d5d800e89e35e4f8207f784 /tests/printf/test.c
parenta48bfddf2b9f9d6f6b6ee5dec41004afed3a71ba (diff)
Added _formatString() special-case for null values (similar to glibc).
Diffstat (limited to 'tests/printf/test.c')
-rw-r--r--tests/printf/test.c2
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);