Add functions wcrtomb, wcslcpy, wcsxfrm, wctob, wctomb, wctype, localeconv, strcoll, strxfrm

This commit is contained in:
Alan Carvalho de Assis
2016-10-18 18:15:54 -06:00
committed by Gregory Nutt
parent 20fc02569f
commit 4d39b513b5
28 changed files with 830 additions and 50 deletions
+6
View File
@@ -42,10 +42,14 @@
#include <nuttx/compiler.h>
#ifdef CONFIG_LIBC_LOCALE
/****************************************************************************
* Type Definitions
****************************************************************************/
struct lconv;
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
@@ -59,10 +63,12 @@ extern "C"
#endif
FAR char *setlocale(int category, FAR const char *locale);
FAR struct lconv *localeconv(void);
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* CONFIG_LIBC_LOCALE */
#endif /* __INCLUDE_LOCALE_H */
+3 -1
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* include/string.h
*
* Copyright (C) 2007-2012, 2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2012, 2014, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -79,6 +79,7 @@ int strcmp(FAR const char *, FAR const char *);
int strncmp(FAR const char *, FAR const char *, size_t);
int strcasecmp(FAR const char *, FAR const char *);
int strncasecmp(FAR const char *, FAR const char *, size_t);
int strcoll(FAR const char *, FAR const char *s2);
FAR char *strcpy(char *dest, FAR const char *src);
FAR char *stpcpy(char *dest, FAR const char *src);
FAR char *strncpy(char *, FAR const char *, size_t);
@@ -91,6 +92,7 @@ FAR char *strstr(FAR const char *, FAR const char *);
FAR char *strcasestr(FAR const char *, FAR const char *);
FAR char *strtok(FAR char *, FAR const char *);
FAR char *strtok_r(FAR char *, FAR const char *, FAR char **);
size_t strxfrm(FAR char *, FAR const char *, size_t n);
FAR void *memchr(FAR const void *s, int c, size_t n);
FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n);