We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4935490 commit 8534585Copy full SHA for 8534585
chapter_1/exercise_1_09/copy_io.c
@@ -4,13 +4,7 @@ int main(void)
4
{
5
int c;
6
int last_c = '\0';
7
- /*
8
- If I use chars here instead of ints I get a "comparison
9
- between pointer and integer gcc" warning.
10
- getchar returns int not char.
11
- Char type is de facto a 1-byte integer type.
12
- Thank you for you solutions, they're helping me learn.
13
- */
+
14
while ((c = getchar()) != EOF)
15
16
if (c != ' ' || last_c != ' ')
0 commit comments