forked from HarshTrivedi/malloc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmm.h
More file actions
23 lines (20 loc) · 690 Bytes
/
Copy pathmm.h
File metadata and controls
23 lines (20 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*- -*- mode: c; c-basic-offset: 4; -*-
*
* The public interface to the students' memory allocator.
*/
int mm_init(void);
void *mm_malloc(size_t size);
void mm_free(void *ptr);
void *mm_realloc(void *ptr, size_t size);
/*
* Students work in teams of one or two. Teams enter their team name, personal
* names and login IDs in a struct of this type in their mm.c file.
*/
typedef struct {
char *teamname; /* ID1+ID2 or ID1 */
char *name1; /* Full name of first member. */
char *id1; /* Login ID of first member. */
char *name2; /* Full name of second member (if any). */
char *id2; /* Login ID of second member. */
} team_t;
extern team_t team;