mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Add functions wcrtomb, wcslcpy, wcsxfrm, wctob, wctomb, wctype, localeconv, strcoll, strxfrm
This commit is contained in:
committed by
Gregory Nutt
parent
20fc02569f
commit
4d39b513b5
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user