The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
locale.h File Reference

locales. More...

#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  lconv
 how numbers and money are written. More...

Macros

#define LC_CTYPE   0
#define LC_NUMERIC   1
#define LC_TIME   2
#define LC_COLLATE   3
#define LC_MONETARY   4
#define LC_MESSAGES   5
#define LC_ALL   6

Functions

char * setlocale (int category, const char *locale)
 choose the locale of a category, or ask for it.
struct lconv * localeconv (void)

Detailed Description

locales.

ginnOS has one: "C" (also called "POSIX"). text is UTF-8 bytes, numbers use '.', and nothing is translated.

Macro Definition Documentation

◆ LC_CTYPE

#define LC_CTYPE   0

◆ LC_NUMERIC

#define LC_NUMERIC   1

◆ LC_TIME

#define LC_TIME   2

◆ LC_COLLATE

#define LC_COLLATE   3

◆ LC_MONETARY

#define LC_MONETARY   4

◆ LC_MESSAGES

#define LC_MESSAGES   5

◆ LC_ALL

#define LC_ALL   6

Function Documentation

◆ setlocale()

char * setlocale ( int category,
const char * locale )

choose the locale of a category, or ask for it.

Parameters
locale"C", "POSIX" or "" (the default, also "C"); NULL asks.
Returns
"C", or NULL if that locale is not there (nothing changes).

◆ localeconv()

struct lconv * localeconv ( void )
Returns
the number and money formats of the locale ("C").