mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
C library: Add ffs(). Add strings.h. Move strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
This commit is contained in:
+9
-2
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
//***************************************************************************
|
||||
// Namespace
|
||||
@@ -51,6 +52,8 @@ namespace std
|
||||
{
|
||||
using ::size_t;
|
||||
|
||||
// Declared in string.h
|
||||
|
||||
using ::strdup;
|
||||
using ::strndup;
|
||||
using ::strerror;
|
||||
@@ -60,8 +63,6 @@ namespace std
|
||||
using ::strncat;
|
||||
using ::strcmp;
|
||||
using ::strncmp;
|
||||
using ::strcasecmp;
|
||||
using ::strncasecmp;
|
||||
using ::strcoll;
|
||||
using ::stpcpy;
|
||||
using ::strcpy;
|
||||
@@ -83,6 +84,12 @@ namespace std
|
||||
using ::memcpy;
|
||||
using ::memmove;
|
||||
using ::memset;
|
||||
|
||||
// Declared in legacy strings.h
|
||||
|
||||
using ::ffs;
|
||||
using ::strcasecmp;
|
||||
using ::strncasecmp;
|
||||
}
|
||||
|
||||
#endif // __INCLUDE_CXX_CSTRING
|
||||
|
||||
Reference in New Issue
Block a user