1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

Userland: Replace most printf-style APIs with AK::Format APIs :^)

This commit is contained in:
Linus Groh 2021-05-31 15:43:25 +01:00
parent 4f1889c2cb
commit f5c35fccca
75 changed files with 642 additions and 644 deletions

View file

@ -125,20 +125,20 @@ int main(int argc, char** argv)
clean_buffers();
if (year_mode) {
printf(" ");
printf("Year %4d", year);
printf(" \n\n");
out(" Year {:04} ", year);
outln();
outln();
for (int i = 1; i < 12; ++i) {
insert_month_to_print(0, i++, year);
insert_month_to_print(1, i++, year);
insert_month_to_print(2, i, year);
printf("%s\n", print_buffer);
outln("{}", print_buffer);
clean_buffers();
}
} else {
insert_month_to_print(0, month, year);
printf("%s\n\n", print_buffer);
outln("{}", print_buffer);
clean_buffers();
}