示例#1
0
/* 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;
}
示例#2
0
/*
 * 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);
}