DUPLOCALE(3) | Library Functions Manual | DUPLOCALE(3) |
duplocale
—
Duplicate existing locale
#include
<xlocale.h>
locale_t
duplocale
(locale_t
loc);
Duplicates an existing locale_t.
Sub-structures are shared between the two locale_t
structures. Passing NULL
will duplicate the current
locale. Passing LC_GLOBAL_LOCALE
will duplicate the
global locale.
Returns a duplicated locale_t, or
NULL
on error. Duplicated locales should be freed
with freelocale(3).
freelocale(3), newlocale(3), querylocale(3), uselocale(3), xlocale(3)
March 11, 2005 | macOS 15.2 |