mirror of
https://github.com/Sosokker/C-Practice.git
synced 2025-12-18 18:14:04 +01:00
22 lines
624 B
C
22 lines
624 B
C
#ifndef CONTACT_H
|
|
#define CONTACT_H
|
|
|
|
#define MAX_NAME_LENGTH 50
|
|
#define MAX_PHONE_LENGTH 15
|
|
#define MAX_EMAIL_LENGTH 50
|
|
#define MAX_CONTACTS 100
|
|
|
|
typedef struct {
|
|
char name[MAX_NAME_LENGTH];
|
|
char phone[MAX_PHONE_LENGTH];
|
|
char email[MAX_EMAIL_LENGTH];
|
|
} Contact;
|
|
|
|
void addContact(Contact contacts[], int *numContacts);
|
|
void displayContacts(Contact contacts[], int numContacts);
|
|
void searchContacts(Contact contacts[], int numContacts, char *searchTerm);
|
|
void updateContact(Contact contacts[], int numContacts, char *searchTerm);
|
|
void deleteContact(Contact contacts[], int *numContacts, char *searchTerm);
|
|
|
|
#endif
|