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:
Gregory Nutt
2017-02-16 16:10:09 -06:00
parent 6d1f3da289
commit 4f5879f998
11 changed files with 194 additions and 28 deletions
+9 -2
View File
@@ -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