std1.0.0-beta-7 SafeC docs

Source locale.sc

View in the repository

// SafeC Standard Library — locale implementation
#pragma once
#include <std/locale.h>

namespace std {

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

inline const ?&char locale_set(int category, const &char name) {
    unsafe { return setlocale(category, name); }
}

inline const ?&char locale_get(int category) {
    unsafe { return setlocale(category, (const char*)0); }
}

} // namespace std