From bba0e9d4e9962773fe8b0feea586ce08dceb1ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Fri, 25 Oct 2019 10:57:26 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/program.c b/program.c index f751351..cfd22d5 100644 --- a/program.c +++ b/program.c @@ -23,7 +23,12 @@ int compare_pizza(const void * left, const void * right) { return -1; } else{ - return 1; + if(a->name[0] > b->name[0]){ + return 1; + } + else{ + return -1; + } } }