From 854b282a0eb7fef22c39817f7146e82d2eb47abe Mon Sep 17 00:00:00 2001 From: Win Date: Sun, 1 Sep 2024 18:09:18 +0700 Subject: [PATCH] update --- vendorInfo.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/vendorInfo.c b/vendorInfo.c index 97f7cb1..60b2c02 100644 --- a/vendorInfo.c +++ b/vendorInfo.c @@ -83,14 +83,11 @@ int main() printf("%-50s %s\n", vendor_info, vendor_stock); } -<<<<<<< HEAD char user_purchase[50]; -======= char query[100]; read_input(query, 100); search(vendors, query); ->>>>>>> ff1cef9 (added search function, still incomplete) fclose(fp); free(file_buffer); @@ -113,14 +110,6 @@ int read_input(char str[], int n) return i; }; -<<<<<<< HEAD -int purchase(struct vendor_item vendors, int index, char str[], int amount) -{ - -} - - -======= int search(struct vendor_item vendors[MAX_VENDORS], char query[]) { int query_length = strlen(query); @@ -136,4 +125,3 @@ int purchase(struct vendor_item vendors[MAX_VENDORS], char str[], int amount) { }; ->>>>>>> ff1cef9 (added search function, still incomplete)