From b504f66b00bedd46390d0071a3948092c2e6e8c8 Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Sat, 15 Apr 2023 12:01:04 +0200 Subject: [PATCH] . --- du6/program.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/du6/program.c b/du6/program.c index 326d569..efb7ad3 100644 --- a/du6/program.c +++ b/du6/program.c @@ -24,6 +24,10 @@ int main(){ strcpy(mena[pocet_mien],riadok); pocet_mien++ ; } + if(pocet_mien=0){ + puts("Ziadne prihlasky"); + return 0; + } qsort(mena, pocet_mien, sizeof(mena[0]), porovnavacka); if(pocet>pocet_mien){ pocet=pocet_mien;