Question: Implement the following functions, considering the given declaration: typedef struct Car { char plate_num[6]; char* owner_name; int owner_phone; } * PCar; 1-/* a function that

Implement the following functions, considering the given declaration:

typedef struct Car { char plate_num[6]; char* owner_name; int owner_phone; 

} * PCar;

1-/* a function that takes two strings and returns 1 if they match and 0 otherwise*/

int match(char* s1, char* s2);

2-* a function that searches an array of cars carArr of size elements for the plate number key, andreturns the owners name if found, and NULL otherwise. Note: use the above function match */char*

get_owner_name(PCar carArr[], int size, char* key);

3-/* a function that reads a cars info from user (including plate number, owners name and phone number) into a car struct passed as pointer */ void fill_car(PCar p);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!