Reindent and improve style(9) comformance.
This commit is contained in:
parent
7e81a15205
commit
ac97b33fc7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146225
@ -13,16 +13,16 @@ __FBSDID("$FreeBSD$");
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i,j,k;
|
||||
int i, j, k;
|
||||
|
||||
if (argc > 1)
|
||||
printf("%s\n",argv[1]);
|
||||
printf("%s\n", argv[1]);
|
||||
k = 0;
|
||||
j = 0;
|
||||
while((i = getchar()) != EOF) {
|
||||
if(k++) {
|
||||
if (k++) {
|
||||
putchar(',');
|
||||
j++;
|
||||
}
|
||||
@ -30,7 +30,7 @@ main(int argc, char **argv)
|
||||
putchar('\n');
|
||||
j = 0;
|
||||
}
|
||||
printf("%d",i);
|
||||
printf("%d", i);
|
||||
if (i > 99)
|
||||
j += 3;
|
||||
else if (i > 9)
|
||||
@ -40,6 +40,6 @@ main(int argc, char **argv)
|
||||
}
|
||||
putchar('\n');
|
||||
if (argc > 2)
|
||||
printf("%s\n",argv[2]);
|
||||
return 0;
|
||||
printf("%s\n", argv[2]);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user