Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Thursday, June 13, 2019
 
 

freelocale (3C)

Name

freelocale - free resources allocated for a locale object

Synopsis

#include <locale.h>
void freelocale(locale_t locobj);

Description

The freelocale() function causes the resources allocated for a locale object returned by a call to the newlocale() or duplocale() functions to be released.

The behavior is undefined if the locobj argument is the special locale object LC_GLOBAL_LOCALE or is not a valid locale object handle.

Any use of a locale object that has been freed results in undefined behavior.

Errors

No errors are defined.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See Also

duplocale(3C), newlocale(3C), uselocale(3C), attributes(7), standards(7)