ciabatta/test/test_printf.c

18 lines
355 B
C
Raw Normal View History

2022-06-16 05:15:45 +00:00
#include <stdio.h>
#include <stdlib.h>
2022-07-17 19:43:41 +00:00
#include <limits.h>
2022-06-16 05:15:45 +00:00
int main() {
2022-07-18 17:58:39 +00:00
printf("%a\n", 0.0);
printf("%a\n", 2.0);
printf("%#a\n", 128.0);
printf("%a\n", 128.0);
printf("%16a|\n", 128.0);
printf("%16.2a|\n", 128.0);
printf("%-16.2a|\n", 128.0);
printf("%016.2a|\n", 128.0);
printf("%.2A\n", 3.141592);
2022-06-16 05:15:45 +00:00
return 0;
}