From d629bf5377ea75639f08e2b0799b29064afe4a95 Mon Sep 17 00:00:00 2001 From: Peter Ferko Date: Tue, 13 Nov 2018 23:06:27 +0000 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20'pizza3.h'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pizza3.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pizza3.h diff --git a/pizza3.h b/pizza3.h new file mode 100644 index 0000000..dc16902 --- /dev/null +++ b/pizza3.h @@ -0,0 +1,26 @@ +#ifndef PIZZA3_H +#define PIZZA3_H + +#define LINE_SIZE 100 +#define LIST_SIZE 100 + +#include + +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