![](/img/trans.png)
[英]How do I get the current size of the heap memory of a process in Linux using C/C++ system calls?
[英]How can I get current localization of Linux through C?
如何通過C獲得Linux的當前本地化版本(ru-RU,en-US,en-GB等)?
謝謝。
在符合POSIX的系統上, setlocale(LC_CTYPE, NULL);
將返回當前為類別LC_CTYPE
選擇的語言環境的名稱。
看一下nl_langinfo和localeconv手冊頁。
如何在Unix系統上搜索子例程和/或系統調用:
apropos locale
查找參考手冊第2節(系統調用)或手冊第3節(子例程)的結果。 例如在Mac上:
querylocale(3) - Get locale name for a specified category setlocale(3) - natural language formatting for C
看看手冊頁
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.