Skip to content

Commit 7ed519d

Browse files
committed
minor tweaks
1 parent 29b0c6c commit 7ed519d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

chapter01/1-16a.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ int main(void)
7272
printf("The longest line is %i characters long.\n", max);
7373
printf("Only showing the first %i characters\n", MAXLINE);
7474
}
75-
7675
return 0;
7776
}
7877

chapter01/1-21.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int count(char s[], char c, int p)
4949
return nC;
5050
}
5151

52-
/* entab function: replaces blanks with the minimum of number tabs and blanks */
52+
/* entab function: replaces blanks with the minimum number of tabs and blanks */
5353
void entab(char line[], char modLine[])
5454
{
5555
int i; /* index for read line */

chapter01/1-24.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
int getLine(char [], int);
2121
int findComment(char [], int);
2222
int delComment(char [], char [], int , int);
23+
void findCharacter(char [], char [], int [], int);
24+
void checkSyntax(char [], int [], int);
2325

2426
/* getLine function: read a line into s, return length */
2527
int getLine(char s[], int lim)
@@ -147,7 +149,7 @@ int delComment(char line[], char modLine[], int start, int end)
147149

148150
/* findCharcter function: counts the occurrence of a characters from symbol in
149151
* line and stores results in charsCount. len is the length of symbol array */
150-
int findCharacter(char line[], char symbol[], int charsCount[], int len)
152+
void findCharacter(char line[], char symbol[], int charsCount[], int len)
151153
{
152154
int i, j;
153155
static int quoteState; /* double quote state flag */

0 commit comments

Comments
 (0)