.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH NEWLOCALE 3 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH NEWLOCALE 3 2019-03-06 "Linux" "Linux Programmer's Manual"
.SH NAME
newlocale, freelocale \- create, modify, and free a locale object
.SH SYNOPSIS
.BR newlocale ()
should be deallocated using
.BR freelocale ().
-.SH EXAMPLE
+.SH EXAMPLES
The program below takes up to two command-line arguments,
which each identify locales.
The first argument is required, and is used to set the
/* Free the locale object */
+ uselocale(LC_GLOBAL_HANDLE); /* So 'loc' is no longer in use */
freelocale(loc);
exit(EXIT_SUCCESS);