mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-13 14:39:10 +00:00
Add Musl multibyte functions
These are standard functions that are needed to help support the Skull language. Note that normally this codebase uses libc/str/thompike.h See #105
This commit is contained in:
parent
cfd453d125
commit
11ec99931b
28 changed files with 1064 additions and 131 deletions
|
@ -18,9 +18,8 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/limits.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/tpencode.internal.h"
|
||||
|
||||
int wctomb(char *s, wchar_t wc) {
|
||||
if (!s) return 0;
|
||||
return tpencode(s, MB_CUR_MAX, wc, false);
|
||||
return wcrtomb(s, wc, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue