xref: /freebsd/lib/libc/locale/freelocale.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
13c87aa1dSDavid Chisnall.\" Copyright (c) 2011 The FreeBSD Foundation
23c87aa1dSDavid Chisnall.\"
33c87aa1dSDavid Chisnall.\" This documentation was written by David Chisnall under sponsorship from
43c87aa1dSDavid Chisnall.\" the FreeBSD Foundation.
53c87aa1dSDavid Chisnall.\"
63c87aa1dSDavid Chisnall.\" Redistribution and use in source and binary forms, with or without
73c87aa1dSDavid Chisnall.\" modification, are permitted provided that the following conditions
83c87aa1dSDavid Chisnall.\" are met:
93c87aa1dSDavid Chisnall.\" 1. Redistributions of source code must retain the above copyright
103c87aa1dSDavid Chisnall.\"    notice, this list of conditions and the following disclaimer.
113c87aa1dSDavid Chisnall.\" 2. Redistributions in binary form must reproduce the above copyright
123c87aa1dSDavid Chisnall.\"    notice, this list of conditions and the following disclaimer in the
133c87aa1dSDavid Chisnall.\"    documentation and/or other materials provided with the distribution.
143c87aa1dSDavid Chisnall.\"
153c87aa1dSDavid Chisnall.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
163c87aa1dSDavid Chisnall.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
173c87aa1dSDavid Chisnall.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
183c87aa1dSDavid Chisnall.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
193c87aa1dSDavid Chisnall.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
203c87aa1dSDavid Chisnall.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
213c87aa1dSDavid Chisnall.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
223c87aa1dSDavid Chisnall.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
233c87aa1dSDavid Chisnall.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
243c87aa1dSDavid Chisnall.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
253c87aa1dSDavid Chisnall.\" SUCH DAMAGE.
26*718fe473SEd Schouten.Dd July 26, 2016
273c87aa1dSDavid Chisnall.Dt FREELOCALE 3
283c87aa1dSDavid Chisnall.Os
293c87aa1dSDavid Chisnall.Sh NAME
303c87aa1dSDavid Chisnall.Nm freelocale
313c87aa1dSDavid Chisnall.Nd Frees a locale created with
323c87aa1dSDavid Chisnall.Xr duplocale 3
333c87aa1dSDavid Chisnallor
34a3fb6da9SGlen Barber.Xr newlocale 3
353c87aa1dSDavid Chisnall.Sh LIBRARY
363c87aa1dSDavid Chisnall.Lb libc
373c87aa1dSDavid Chisnall.Sh SYNOPSIS
3858912ae7SDavid Chisnall.In locale.h
39*718fe473SEd Schouten.Ft void
403c87aa1dSDavid Chisnall.Fn freelocale "locale_t locale"
413c87aa1dSDavid Chisnall.Sh DESCRIPTION
423c87aa1dSDavid ChisnallFrees a
433c87aa1dSDavid Chisnall.Fa locale_t .
4484493996SDavid E. O'BrienThis relinquishes any resources held exclusively by this locale.
4584493996SDavid E. O'BrienNote that locales share reference-counted components,
4684493996SDavid E. O'Brienso a call to this function is not guaranteed to free all of the components.
473c87aa1dSDavid Chisnall.Sh SEE ALSO
483c87aa1dSDavid Chisnall.Xr duplocale 3 ,
493c87aa1dSDavid Chisnall.Xr localeconv 3 ,
503c87aa1dSDavid Chisnall.Xr newlocale 3 ,
513c87aa1dSDavid Chisnall.Xr querylocale 3 ,
523c87aa1dSDavid Chisnall.Xr uselocale 3 ,
533c87aa1dSDavid Chisnall.Xr xlocale 3
543c87aa1dSDavid Chisnall.Sh STANDARDS
55*718fe473SEd SchoutenThis function conforms to
56*718fe473SEd Schouten.St -p1003.1-2008 .
57