-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvolunteer.h
More file actions
26 lines (22 loc) · 926 Bytes
/
Copy pathvolunteer.h
File metadata and controls
26 lines (22 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Name: Hasin Shadab Rahman UID:U87513234
#ifndef VOLUNTEER_H
#define VOLUNTEER_H
// Macros defining the maximum length for email and name
#define EMAIL_LEN 100
#define NAME_LEN 30
// Structure to store volunteer information
struct volunteer {
char first[NAME_LEN + 1]; // First name
char last[NAME_LEN + 1]; // Last name
char email[EMAIL_LEN + 1]; // Email address
int grade_level; // Grade level
struct volunteer *next; // Pointer to the next node in the linked list
struct volunteer *prev; // Pointer to the previous node in the linked list
};
// Function prototypes for operations on the volunteer list
struct volunteer *add_to_list(struct volunteer *list);
void search_list(struct volunteer *list);
void print_list(struct volunteer *list);
void clear_list(struct volunteer *list);
struct volunteer *delete_from_list(struct volunteer *list);
#endif