summaryrefslogtreecommitdiff
path: root/LibC/locale.h
blob: b1c4e94275bd5f52207277ee6e7b630629c790d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <sys/cdefs.h>

__BEGIN_DECLS

enum {
    LC_ALL,
    LC_NUMERIC,
    LC_CTYPE,
    LC_COLLATE,
    LC_TIME,
    LC_MONETARY,
};

struct lconv {
    char* decimal_point;
    char* thousands_sep;
    char* grouping;
};

struct lconv* localeconv();
char* setlocale(int category, const char* locale);

__END_DECLS