/* ============================================================= */ /* Jean-Michel RICHER - 2008 - */ /* ============================================================= */ #ifndef MULTI_ALLOC_H #define MULTI_ALLOC_H #include <stdlib.h> #include <stdio.h> #define BLOCK_SIZE 10 /** * structure used for the purpose of this demonstration */ typedef struct Struct Struct; struct Struct { Struct *next; int number; }; /** * allocate a new object */ Struct *Struct_malloc(); /** * free an object */ void Struct_free(Struct *s); #endif