freelocale(3)

freelocale3

Frees an allocated locale

Usage

#include <xlocale.h>

int

freelocale(locale_t loc);

Overview

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

Return values

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.

Releases

135 releases since Mac OS X 10.4; the text changed 1 time.

  1. 10.4–10.4.11
  2. 10.5–26.5

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.