libc: Implement wcsrtombs, wcsnrtombs and mbsnrtowcs

and update the related stuff in libs/libc/libc.csv

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id695a7f07bf18a7b4e526297f9131c75ddb79d30
This commit is contained in:
Xiang Xiao
2020-06-02 12:22:26 +08:00
committed by patacongo
parent f1433ee8d2
commit 7cbcbcde51
9 changed files with 124 additions and 12 deletions
+2 -2
View File
@@ -50,7 +50,7 @@
*
****************************************************************************/
int mbtowc(FAR wchar_t * pwc, FAR const char *s, size_t n)
int mbtowc(FAR wchar_t *pwc, FAR const char *s, size_t n)
{
if (s == NULL)
{
@@ -64,7 +64,7 @@ int mbtowc(FAR wchar_t * pwc, FAR const char *s, size_t n)
if (pwc)
{
*pwc = (wchar_t) * s;
*pwc = (wchar_t)*s;
}
return (*s != '\0');