added code for checking internet connection

This commit is contained in:
Václav Šmejkal 2022-04-22 18:53:26 +02:00
parent b2b720c597
commit 802018e16e

View File

@ -39,6 +39,15 @@ checkVersion()
strcat(buffer, lineBuffer);
}
//CHECK FOR TEXT IN buffer
if (strcmp(buffer, "") == 0)
{
fprintf(stderr, "You probably aren't connected to internet! This release could be unsafe!\n");
//WAIT FOR 5 SECONDS
sleep(5);
}
//CLEANUP
fclose(fileBuffer);