toaruos/apps/test-printf.c

12 lines
209 B
C

#include <stdio.h>
int main(int argc, char * argv[]) {
printf("%.3d\n", 42);
printf("%.10d\n", 12345);
printf("%.1d\n", 0);
printf("%.0d\n", 0);
printf("%.0d\n", 1);
printf("%.0d\n", 123);
return 0;
}