这是一个本人学习 csapp 的 learning 库
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

23 linhas
638 B

  1. #include <stdio.h>
  2. extern int mm_init (void);
  3. extern void *mm_malloc (size_t size);
  4. extern void mm_free (void *ptr);
  5. extern void *mm_realloc(void *ptr, size_t size);
  6. /*
  7. * Students work in teams of one or two. Teams enter their team name,
  8. * personal names and login IDs in a struct of this
  9. * type in their bits.c file.
  10. */
  11. typedef struct {
  12. char *teamname; /* ID1+ID2 or ID1 */
  13. char *name1; /* full name of first member */
  14. char *id1; /* login ID of first member */
  15. char *name2; /* full name of second member (if any) */
  16. char *id2; /* login ID of second member */
  17. } team_t;
  18. extern team_t team;