1.Dd March 11, 2005
2.Dt FREELOCALE 3
3.Os
4.Sh NAME
5.Nm freelocale
6.Nd Frees an allocated locale
7.Sh SYNOPSIS
8.In xlocale.h
9.Ft int
10.Fn freelocale "locale_t loc"
11.Sh DESCRIPTION
12Frees the storage associated with
13.Va loc .
14Sub-structures have their reference counts reduced,
15and are freed if the reference count becomes zero.
16.Sh RETURN VALUES
17Returns zero on success, -1 on error. An error will occur if
18.Va loc
19is not a
20.Vt locale_t ,
21or is
22.Dv NULL
23or
24.Dv LC_GLOBAL_LOCALE .
25.Sh SEE ALSO
26.Xr duplocale 3 ,
27.Xr newlocale 3 ,
28.Xr querylocale 3 ,
29.Xr uselocale 3 ,
30.Xr xlocale 3
31