cn_map / cn_map_free

Syntax

void cn_map_free(CN_MAP map)

Description

Frees the CN_Map map from memory. Will call cn_map_clear first before freeing the CN_Map itself.

Return Value

N/A

Examples

Basic Usage

#include <stdio.h>
#include <stdlib.h>

#include "cn_cmp.h"
#include "cn_map.h"

main() {
	//Create a new cn_map
	CN_MAP map = cn_map_init(int, int, cn_cmp_int);

	//Free the CN_Map
	cn_map_free(map);
}