4
This commit is contained in:
parent
f20b798616
commit
1dcb4845fd
@ -38,7 +38,7 @@ int main(void) {
|
|||||||
if (fgets(code, sizeof(code), stdin) == NULL)
|
if (fgets(code, sizeof(code), stdin) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Odstránenie znaku nového riadku, ak existuje
|
|
||||||
code[strcspn(code, "\n")] = '\0';
|
code[strcspn(code, "\n")] = '\0';
|
||||||
|
|
||||||
printf("Read: %s\n", code);
|
printf("Read: %s\n", code);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user