Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 17583cc

Browse files
delete unnecessary check and add comment
1 parent 3141511 commit 17583cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎chapter05/5-11/detab.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ int setTabList(int count, char **arg, int *tabList)
4242
{
4343
int i;
4444

45-
if (count < 2) /* tab list was not provided */
46-
return 0; /* signal to use default N */
4745
for (i = 0; --count > 0; ++i)
4846
if (!(tabList[i] = atoi(*++arg)) || tabList[i] < 0) {
4947
printf("Invalid tabstop: %s\n", *arg);
5048
return -1;
5149
}
52-
return i;
50+
return i;/* i is 0 if no tablist */
5351
}
5452

5553
/* toNextTab: return the number of blanks to the next tab stop position. */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /