/* wftest.c L. Stewart April 7, 1982 4:13 PM */ main() { wf("string with no arguments\r"); wf1("string with one integer argument = 1 |%d|\r", 1); wf1("string with one integer argument = -1 |%d|\r", -1); wf2("two args, 123 |%d| and 456 |%d|\r", 123, 456); wf3("three args, 123 |%d|, 456 |%d|, and 789 |%d|\r", 123, 456, 789); wf4("four args, 1 %d, two %d, three %d, and four %d\r", 1, 2, 3, 4); wf3("512 in decimal |%d|, octal, |%o|, and hex |%x|\r", 512, 512, 512); wf3("-1 in decimal |%d|, octal, |%o|, and hex |%x|\r", -1, -1, -1); wf1("a string argument |%s|\r", "hello there"); wf1("one in a 5 digit field |%5d|\r", 1); wf1("15 in a 2 digit hex field |%2x|\r", 1); wf1("15 in a 2 digit zero filled hex field |%02x|\r", 1); };