22 lines
329 B
C
22 lines
329 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#define COLIM 16
|
|
|
|
int main(int argc, char *argv[]) {
|
|
char c;
|
|
int count=0;
|
|
if (argc<1) {
|
|
fprintf(stderr, "No format provided!\n");
|
|
return 1;
|
|
}
|
|
while ((c=getchar())!=EOF) {
|
|
printf(argv[1], c);
|
|
if (count++==COLIM) {
|
|
printf("\n");
|
|
count=0;
|
|
}
|
|
}
|
|
printf("\n");
|
|
return 0;
|
|
}
|