/* Free up memory for a map */ void map_free(map_grid_t **dungeon) { /* [note to self - free all the dungeon up] */ /* Free the space up */ rnfree((vptr) *dungeon); return; }
/* * Un-allocate a string allocated above. * Depends on no changes being made to the string. */ errr string_free(cptr str) { /* Succeed on non-strings */ if (!str) return (0); /* Kill the buffer of chars we must have allocated above */ rnfree((vptr)str); /* Success */ return (0); }