ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



DUPLOCALE(3)             BSD Library Functions Manual             DUPLOCALE(3)

NAME
     duplocale -- Duplicate existing locale

SYNOPSIS
     #include <xlocale.h>

     locale_t
     duplocale(locale_t loc);

DESCRIPTION
     Duplicates an existing locale_t.  Sub-structures are shared between the two locale_t structures.  Pass-ing Passing
     ing NULL will duplicate the current locale.  Passing LC_GLOBAL_LOCALE will duplicate the global locale.

RETURN VALUES
     Returns a duplicated locale_t, or NULL on error.  Duplicated locales should be freed with
     freelocale(3).

SEE ALSO
     freelocale(3), newlocale(3), querylocale(3), uselocale(3), xlocale(3)

BSD                             March 11, 2005                             BSD

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.