diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-23 12:41:14 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-23 12:41:14 +0000 |
| commit | 9cdeda34930cba606725ce1497b72e006e1b1c54 (patch) | |
| tree | ddfb3b7a50966655ac935b15b62c598e7a8892ef /malloclab-handout/mm.h | |
| parent | 3526782dad25bc7caaf5bf49c0010c5e917b11f1 (diff) | |
init malloc lab
Diffstat (limited to 'malloclab-handout/mm.h')
| -rw-r--r-- | malloclab-handout/mm.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/malloclab-handout/mm.h b/malloclab-handout/mm.h new file mode 100644 index 0000000..d41eef7 --- /dev/null +++ b/malloclab-handout/mm.h @@ -0,0 +1,23 @@ +#include <stdio.h> + +extern int mm_init (void); +extern void *mm_malloc (size_t size); +extern void mm_free (void *ptr); +extern 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 bits.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; + |
