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