mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user