fixed formatting in code, tweaked sscanf() call
This commit is contained in:
parent
c428710754
commit
9b61b53bdf
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user