Přidat 'pizza3.h'

This commit is contained in:
Peter Ferko 2018-11-13 23:06:27 +00:00
parent 342cb1b17a
commit d629bf5377

26
pizza3.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef PIZZA3_H
#define PIZZA3_H
#define LINE_SIZE 100
#define LIST_SIZE 100
#include <stdio.h>
struct pizza {
float prize;
char name[LINE_SIZE];
};
int read_line(FILE* file,char* line, int size);
int search_string(const char* heap, const char* needle);
int search_pizza_list(struct pizza* list,int size, const char* needle);
int read_pizza(FILE* file,struct pizza* item);
int compare_pizza (const void * a, const void * b);
void sort_pizza(struct pizza* list,int size);
int read_pizza_list(FILE* file,struct pizza* list, int size);
void print_pizza_list(struct pizza* list, int size);
#endif // PIZZA3_H