This commit is contained in:
Radovan Kofira 2020-10-04 23:19:07 +02:00
parent a8868ff748
commit 7058b65de8
2 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,11 @@ void trim(char* str);
int search_string(const char* heap, const char* needle);
int read_pizza(struct pizza* item);
char hacker_script(char c);
int main(){
struct pizza jedalny_listok[POCET_JEDAL];
memset(jedalny_listok, 0,sizeof(struct pizza)*POCET_JEDAL);
int counter;
int counter=0;
char line[LINE_SIZE];
memset(line,0,LINE_SIZE);
printf("Zadaj hladanu surovinu:\n");
@ -26,7 +27,6 @@ int main(){
if(r != NULL && line[1] != 0){
printf("Zadaj jedalny listok\n");
struct pizza item;
counter=0;
while(read_pizza(&item)){
strcpy(jedalny_listok[counter].name, item.name);
jedalny_listok[counter].prize=item.prize;

Binary file not shown.