Compare commits

..

1 Commits

Author SHA1 Message Date
Claudio Maggioni
292266507d Changed description 2019-09-20 08:40:42 +02:00
2 changed files with 1 additions and 23 deletions

View File

@ -1,22 +0,0 @@
// vim: set ts=4 sw=4 et tw=80:
#include <stdio.h>
#include <ctype.h>
#include <stdbool.h>
int main() {
int c;
bool in_space = true;
unsigned int w = 0;
while ((c = getchar()) != EOF) {
if (isspace(c)) {
if (!in_space) {
w++;
in_space = true;
}
} else {
in_space = false;
}
}
printf("%u\n", w);
}

View File

@ -1,6 +1,6 @@
# sys_prog
System Programming exercises / homeworks.
System Programming exercises / homeworks done during the summer.
## Description