mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
14 lines
266 B
C
14 lines
266 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
char buf[100] = "";
|
|
fgets(buf, sizeof buf, stdin);
|
|
|
|
for (int i=0; !(buf[i] == '\0'); i++) {
|
|
if (buf[i] == '\n') {buf[i] = '\0';}
|
|
}
|
|
printf("%d\n", (int)strlen(buf));
|
|
return 0;
|
|
}
|