fixed formatting in code, tweaked sscanf() call

This commit is contained in:
Tomáš Vlček 2026-03-19 21:57:06 +00:00
parent c428710754
commit 9b61b53bdf

View File

@ -51,13 +51,13 @@ int main()
//pomocne premeny
char line[SIZE], strBuffer[SIZE];
line[0] = '\0';
strBuffer[0] = '\0';
char* strtofEndPtr;
int LinesOnInputCount = 0;
while (fgets(line, SIZE, stdin) != NULL)
{
(sscanf(line, "%127[^\n]", strBuffer);
strBuffer[0] = '\0';
sscanf(line, "%127[^\n]", strBuffer);
if (strBuffer[0] == '\0')
{
printf("CHYBA\n");