usaa18cv3/pizza3.h

28 lines
623 B
C
Raw Normal View History

2018-11-19 22:49:56 +00:00
#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