#define DBG 1 #define ARG 0 #include "frmwrk/inc/main.h" /* --------------------------------------------------------------------- */ #include #include #include "include/sma.h" int main(void) { char *p[3] = { NULL }; sma_init (NULL); /* */ p[1] = sma_malloc (10 * sizeof (*p[1])); p[1][10] = 1; p[1][-1] = 1; /* */ p[1] = sma_realloc (p[1], 20); /* */ p[2] = malloc (3); sma_register (p[2]); sma_profil (); p[1]++; sma_free (p[1]); sma_free (p[2]); sma_end (); return 0; }