diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-26 19:33:30 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-26 19:33:30 +0800 |
| commit | 32c461759a0c60e8b7d9e7840827fd785b56a422 (patch) | |
| tree | 687a188e5ae15c189bbf67ecb05ef4de7588eb48 /5/11.c | |
| parent | 838bd28245dc7e29113561e0e1e4ba67fe8390f1 (diff) | |
| download | k&r-exercises-32c461759a0c60e8b7d9e7840827fd785b56a422.tar.gz | |
5.11
Diffstat (limited to '5/11.c')
| -rw-r--r-- | 5/11.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,8 +7,8 @@ #define TABSIZE 8 #define MAXTEXTLEN 500 -int gettabs(char *s, int *t); int getinput(char *s, int max); +int gettablist(char *s, int *t); void entab(char *s, char *t, int *tablist, int tablistc); void detab(char *s, char *t, int *tablist, int tablistc); @@ -22,7 +22,7 @@ int main(int argc, char *argv[]) { } if (argc == 3) { - if (!(colc = gettabs(argv[2], colv))) { + if (!(colc = gettablist(argv[2], colv))) { printf("error: invalid tablist\n"); return 1; } @@ -50,7 +50,7 @@ int main(int argc, char *argv[]) { return 0; } -int gettabs(char *s, int *t) { +int gettablist(char *s, int *t) { int i, j, k; char col[MAXDIGLEN]; |
