FREELOCALE(3) Library Functions Manual FREELOCALE(3)

freelocaleFrees an allocated locale

#include <xlocale.h>

int
freelocale(locale_t loc);

Frees the storage associated with loc. Sub-structures have their reference counts reduced, and are freed if the reference count becomes zero.

Returns zero on success, -1 on error. An error will occur if loc is not a locale_t, or is NULL or LC_GLOBAL_LOCALE.

duplocale(3), newlocale(3), querylocale(3), uselocale(3), xlocale(3)

March 11, 2005 Mac OS X 12