summaryrefslogtreecommitdiffstats
path: root/5/11.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2022-01-26 19:33:30 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2022-01-26 19:33:30 +0800
commit32c461759a0c60e8b7d9e7840827fd785b56a422 (patch)
tree687a188e5ae15c189bbf67ecb05ef4de7588eb48 /5/11.c
parent838bd28245dc7e29113561e0e1e4ba67fe8390f1 (diff)
downloadk&r-exercises-32c461759a0c60e8b7d9e7840827fd785b56a422.tar.gz
5.11
Diffstat (limited to '5/11.c')
-rw-r--r--5/11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/5/11.c b/5/11.c
index 056bdd8..51b0faf 100644
--- a/5/11.c
+++ b/5/11.c
@@ -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];