06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pREPC+ <strong>System</strong> <strong>Calls</strong> setlocale<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

locale Points to a string specifying the locale in which the program is used.<br />

Only one value is supported by pREPC+:<br />

If a pointer to a string is given for locale and the selection can be honored,<br />

setlocale() returns a pointer to the string associated with the specified category<br />

for the new locale. If the selection cannot be honored, setlocale() returns a null<br />

pointer and the program’s locale is not changed.<br />

A null pointer for locale causes setlocale() to return a pointer to the string<br />

associated with the category for the program’s current locale; the program’s locale<br />

is not changed.<br />

The pointer to string returned by setlocale() is such that a subsequent call with<br />

that string value and its associated category will restore that part of the program’s<br />

locale. The string pointed to will not be modified by the program, but may be<br />

overwritten by a subsequent call to setlocale().<br />

None.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

“C” Specifies the minimal environment for C<br />

translation.<br />

localeconv, strcoll, strxfrm, strftime<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-135<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!