Skip to content

Commit b07d5fd

Browse files
authored
Update variables.c
Aligned patch 5 (this) with patch 4 to ease readability. In this case, "if (isalpha(c) && !isupper(c))" has been simplified to "if (islower(c))"
1 parent ad14bc3 commit b07d5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_4/exercise_4_06/variables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ int getop(char s[])
251251

252252
s[1] = '\0';
253253

254-
if (isalpha(c) && !isupper(c))
254+
if (islower(c))
255255
{
256256
var = c;
257257
return VARGET;

0 commit comments

Comments
 (0)