* This uses gets to read input one line at a time.
* Gets is risky since it has no way to check if the
* input line overflows the the buffer. This also
* demonstrates a one stupid printf() trick.
#define LINWID 55
* Print a LINWID line, with +'s on the ends.
int n = LINWID;
// Print the line at LINWID with | | around it.
printf("|%-*s|\n", LINWID, buf);