libc: remove reference to non-existent readme

remove reference to non-existent readme in libc.

Pointing to the documentation page doesn't make sense in this case,
because it doesn't explain the use of `#undef XXX` for this case anyway.

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl
2025-10-11 13:18:53 +02:00
committed by Matteo Golin
parent f22436ae46
commit 13ab107d67
61 changed files with 63 additions and 63 deletions
+3 -3
View File
@@ -44,15 +44,15 @@
* IEEE Std 1003.1-2008 * IEEE Std 1003.1-2008
*/ */
#ifndef bcmp /* See mm/README.txt */ #ifndef bcmp
#define bcmp(b1,b2,len) memcmp(b1,b2,(size_t)len) #define bcmp(b1,b2,len) memcmp(b1,b2,(size_t)len)
#endif #endif
#ifndef bcopy /* See mm/README.txt */ #ifndef bcopy
#define bcopy(b1,b2,len) memmove(b2,b1,len) #define bcopy(b1,b2,len) memmove(b2,b1,len)
#endif #endif
#ifndef bzero /* See mm/README.txt */ #ifndef bzero
#define bzero(s,n) memset(s,0,n) #define bzero(s,n) memset(s,0,n)
#endif #endif
+1 -1
View File
@@ -11,4 +11,4 @@ config GNSSUTILS_MINMEA_LIB
NOTE: This library depends on having some version of math.h NOTE: This library depends on having some version of math.h
at include/nuttx. There are some different ways to accomplish at include/nuttx. There are some different ways to accomplish
this. See the discussion in the top-level nuttx/README.txt file. this. See the discussion in the Documentation/legacy_README.md file.
+1 -1
View File
@@ -32,7 +32,7 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
#undef aligned_alloc /* See mm/README.txt */ #undef aligned_alloc
FAR void *aligned_alloc(size_t align, size_t size) FAR void *aligned_alloc(size_t align, size_t size)
{ {
return lib_memalign(align, size); return lib_memalign(align, size);
+1 -1
View File
@@ -30,7 +30,7 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
#undef atoi /* See mm/README.txt */ #undef atoi
int atoi(FAR const char *nptr) int atoi(FAR const char *nptr)
{ {
return strtol(nptr, NULL, 10); return strtol(nptr, NULL, 10);
+1 -1
View File
@@ -30,7 +30,7 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
#undef atol /* See mm/README.txt */ #undef atol
long atol(FAR const char *nptr) long atol(FAR const char *nptr)
{ {
return strtol(nptr, NULL, 10); return strtol(nptr, NULL, 10);
+1 -1
View File
@@ -33,7 +33,7 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
#undef posix_memalign /* See mm/README.txt */ #undef posix_memalign
int posix_memalign(FAR void **mem, size_t align, size_t size) int posix_memalign(FAR void **mem, size_t align, size_t size)
{ {
*mem = lib_memalign(align, size); *mem = lib_memalign(align, size);
+1 -1
View File
@@ -51,7 +51,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef valloc /* See mm/README.txt */ #undef valloc
FAR void *valloc(size_t size) FAR void *valloc(size_t size)
{ {
return lib_memalign(sysconf(_SC_PAGESIZE), size); return lib_memalign(sysconf(_SC_PAGESIZE), size);
+1 -1
View File
@@ -71,7 +71,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef memccpy /* See mm/README.txt */ #undef memccpy
FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n) FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n)
{ {
FAR void *ptr = NULL; FAR void *ptr = NULL;
+1 -1
View File
@@ -73,7 +73,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR) #if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR)
#undef memchr /* See mm/README.txt */ #undef memchr
FAR void *memchr(FAR const void *s, int c, size_t n) FAR void *memchr(FAR const void *s, int c, size_t n)
{ {
FAR const unsigned char *p = (FAR const unsigned char *)s; FAR const unsigned char *p = (FAR const unsigned char *)s;
+1 -1
View File
@@ -48,7 +48,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP) #if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP)
#undef memcmp /* See mm/README.txt */ #undef memcmp
no_builtin("memcmp") no_builtin("memcmp")
int memcmp(FAR const void *s1, FAR const void *s2, size_t n) int memcmp(FAR const void *s1, FAR const void *s2, size_t n)
{ {
+1 -1
View File
@@ -56,7 +56,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY) #if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY)
#undef memcpy /* See mm/README.txt */ #undef memcpy
no_builtin("memcpy") no_builtin("memcpy")
FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n) FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n)
{ {
+1 -1
View File
@@ -70,7 +70,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef memrchr /* See mm/README.txt */ #undef memrchr
FAR void *memrchr(FAR const void *s, int c, size_t n) FAR void *memrchr(FAR const void *s, int c, size_t n)
{ {
FAR const unsigned char *src0 = FAR const unsigned char *src0 =
+1 -1
View File
@@ -61,7 +61,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_LIBC_ARCH_STPCPY #ifndef CONFIG_LIBC_ARCH_STPCPY
#undef stpcpy /* See mm/README.txt */ #undef stpcpy
nosanitize_address nosanitize_address
FAR char *stpcpy(FAR char *dest, FAR const char *src) FAR char *stpcpy(FAR char *dest, FAR const char *src)
{ {
+1 -1
View File
@@ -77,7 +77,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_LIBC_ARCH_STPNCPY #ifndef CONFIG_LIBC_ARCH_STPNCPY
#undef stpncpy /* See mm/README.txt */ #undef stpncpy
FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n) FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n)
{ {
FAR char *ret = NULL; FAR char *ret = NULL;
+1 -1
View File
@@ -48,7 +48,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT) #if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT)
#undef strcat /* See mm/README.txt */ #undef strcat
nosanitize_address nosanitize_address
FAR char *strcat(FAR char *dest, FAR const char *src) FAR char *strcat(FAR char *dest, FAR const char *src)
{ {
+1 -1
View File
@@ -67,7 +67,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR) #if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR)
#undef strchr /* See mm/README.txt */ #undef strchr
nosanitize_address nosanitize_address
FAR char *strchr(FAR const char *s, int c) FAR char *strchr(FAR const char *s, int c)
{ {
+1 -1
View File
@@ -45,7 +45,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL) #if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL)
#undef strchrnul /* See mm/README.txt */ #undef strchrnul
FAR char *strchrnul(FAR const char *s, int c) FAR char *strchrnul(FAR const char *s, int c)
{ {
FAR char *s1 = strchr(s, c); FAR char *s1 = strchr(s, c);
+1 -1
View File
@@ -50,7 +50,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP) #if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP)
#undef strcmp /* See mm/README.txt */ #undef strcmp
nosanitize_address nosanitize_address
int strcmp(FAR const char *cs, FAR const char *ct) int strcmp(FAR const char *cs, FAR const char *ct)
{ {
+1 -1
View File
@@ -62,7 +62,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY) #if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY)
#undef strcpy /* See mm/README.txt */ #undef strcpy
nosanitize_address nosanitize_address
FAR char *strcpy(FAR char *dest, FAR const char *src) FAR char *strcpy(FAR char *dest, FAR const char *src)
{ {
+1 -1
View File
@@ -48,7 +48,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN) #if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN)
#undef strlen /* See mm/README.txt */ #undef strlen
nosanitize_address nosanitize_address
size_t strlen(FAR const char *s) size_t strlen(FAR const char *s)
{ {
+1 -1
View File
@@ -52,7 +52,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRNCMP) && defined(LIBC_BUILD_STRNCMP) #if !defined(CONFIG_LIBC_ARCH_STRNCMP) && defined(LIBC_BUILD_STRNCMP)
#undef strncmp /* See mm/README.txt */ #undef strncmp
nosanitize_address nosanitize_address
int strncmp(FAR const char *cs, FAR const char *ct, size_t nb) int strncmp(FAR const char *cs, FAR const char *ct, size_t nb)
{ {
+1 -1
View File
@@ -75,7 +75,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRNCPY) && defined(LIBC_BUILD_STRNCPY) #if !defined(CONFIG_LIBC_ARCH_STRNCPY) && defined(LIBC_BUILD_STRNCPY)
#undef strncpy /* See mm/README.txt */ #undef strncpy
nosanitize_address nosanitize_address
FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n) FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n)
{ {
+1 -1
View File
@@ -35,7 +35,7 @@
*/ */
#if !defined(CONFIG_LIBC_ARCH_STRRCHR) && defined(LIBC_BUILD_STRRCHR) #if !defined(CONFIG_LIBC_ARCH_STRRCHR) && defined(LIBC_BUILD_STRRCHR)
#undef strrchr /* See mm/README.txt */ #undef strrchr
FAR char *strrchr(FAR const char *s, int c) FAR char *strrchr(FAR const char *s, int c)
{ {
FAR const char *last = NULL; FAR const char *last = NULL;
+1 -1
View File
@@ -34,7 +34,7 @@
* Name: index * Name: index
****************************************************************************/ ****************************************************************************/
#undef index /* See mm/README.txt */ #undef index
FAR char *index(FAR const char *s, int c) FAR char *index(FAR const char *s, int c)
{ {
return strchr(s, c); return strchr(s, c);
+1 -1
View File
@@ -48,7 +48,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef memccpy /* See mm/README.txt */ #undef memccpy
FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n) FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n)
{ {
FAR unsigned char *pout = (FAR unsigned char *)s1; FAR unsigned char *pout = (FAR unsigned char *)s1;
+1 -1
View File
@@ -49,7 +49,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR) #if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR)
#undef memchr /* See mm/README.txt */ #undef memchr
FAR void *memchr(FAR const void *s, int c, size_t n) FAR void *memchr(FAR const void *s, int c, size_t n)
{ {
FAR const unsigned char *p = (FAR const unsigned char *)s; FAR const unsigned char *p = (FAR const unsigned char *)s;
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP) #if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP)
#undef memcmp /* See mm/README.txt */ #undef memcmp
no_builtin("memcmp") no_builtin("memcmp")
int memcmp(FAR const void *s1, FAR const void *s2, size_t n) int memcmp(FAR const void *s1, FAR const void *s2, size_t n)
{ {
+1 -1
View File
@@ -39,7 +39,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY) #if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY)
#undef memcpy /* See mm/README.txt */ #undef memcpy
no_builtin("memcpy") no_builtin("memcpy")
FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n) FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n)
{ {
+1 -1
View File
@@ -57,7 +57,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef memmem /* See mm/README.txt */ #undef memmem
FAR void *memmem(FAR const void *haystack, size_t haystacklen, FAR void *memmem(FAR const void *haystack, size_t haystacklen,
FAR const void *needle, size_t needlelen) FAR const void *needle, size_t needlelen)
{ {
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMMOVE) && defined(LIBC_BUILD_MEMMOVE) #if !defined(CONFIG_LIBC_ARCH_MEMMOVE) && defined(LIBC_BUILD_MEMMOVE)
#undef memmove /* See mm/README.txt */ #undef memmove
no_builtin("memmove") no_builtin("memmove")
FAR void *memmove(FAR void *dest, FAR const void *src, size_t count) FAR void *memmove(FAR void *dest, FAR const void *src, size_t count)
{ {
+1 -1
View File
@@ -53,7 +53,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef mempcpy /* See mm/README.txt */ #undef mempcpy
FAR void *mempcpy(FAR void *dest, FAR const void *src, size_t n) FAR void *mempcpy(FAR void *dest, FAR const void *src, size_t n)
{ {
return (FAR char *)memcpy(dest, src, n) + n; return (FAR char *)memcpy(dest, src, n) + n;
+1 -1
View File
@@ -46,7 +46,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef memrchr /* See mm/README.txt */ #undef memrchr
FAR void *memrchr(FAR const void *s, int c, size_t n) FAR void *memrchr(FAR const void *s, int c, size_t n)
{ {
FAR const unsigned char *p = (FAR const unsigned char *)s + n; FAR const unsigned char *p = (FAR const unsigned char *)s + n;
+1 -1
View File
@@ -51,7 +51,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_MEMSET) && defined(LIBC_BUILD_MEMSET) #if !defined(CONFIG_LIBC_ARCH_MEMSET) && defined(LIBC_BUILD_MEMSET)
#undef memset /* See mm/README.txt */ #undef memset
no_builtin("memset") no_builtin("memset")
FAR void *memset(FAR void *s, int c, size_t n) FAR void *memset(FAR void *s, int c, size_t n)
{ {
+1 -1
View File
@@ -34,7 +34,7 @@
* Name: rindex * Name: rindex
****************************************************************************/ ****************************************************************************/
#undef rindex /* See mm/README.txt */ #undef rindex
FAR char *rindex(FAR const char *s, int c) FAR char *rindex(FAR const char *s, int c)
{ {
return strrchr(s, c); return strrchr(s, c);
+1 -1
View File
@@ -46,7 +46,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_LIBC_ARCH_STPCPY #ifndef CONFIG_LIBC_ARCH_STPCPY
#undef stpcpy /* See mm/README.txt */ #undef stpcpy
FAR char *stpcpy(FAR char *dest, FAR const char *src) FAR char *stpcpy(FAR char *dest, FAR const char *src)
{ {
while ((*dest++ = *src++) != '\0'); while ((*dest++ = *src++) != '\0');
+1 -1
View File
@@ -56,7 +56,7 @@
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_LIBC_ARCH_STPNCPY #ifndef CONFIG_LIBC_ARCH_STPNCPY
#undef stpncpy /* See mm/README.txt */ #undef stpncpy
FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n) FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n)
{ {
FAR char *end = dest + n; /* End of dest buffer + 1 byte */ FAR char *end = dest + n; /* End of dest buffer + 1 byte */
+1 -1
View File
@@ -36,7 +36,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCASECMP) && defined(LIBC_BUILD_STRCASECMP) #if !defined(CONFIG_LIBC_ARCH_STRCASECMP) && defined(LIBC_BUILD_STRCASECMP)
#undef strcasecmp /* See mm/README.txt */ #undef strcasecmp
int strcasecmp(FAR const char *cs, FAR const char *ct) int strcasecmp(FAR const char *cs, FAR const char *ct)
{ {
register int result; register int result;
+1 -1
View File
@@ -34,7 +34,7 @@
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
#undef strcasechr /* See mm/README.txt */ #undef strcasechr
static FAR char *strcasechr(FAR const char *s, int uc) static FAR char *strcasechr(FAR const char *s, int uc)
{ {
register char ch; register char ch;
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT) #if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT)
#undef strcat /* See mm/README.txt */ #undef strcat
FAR char *strcat(FAR char *dest, FAR const char *src) FAR char *strcat(FAR char *dest, FAR const char *src)
{ {
FAR char *ret = dest; FAR char *ret = dest;
+1 -1
View File
@@ -49,7 +49,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR) #if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR)
#undef strchr /* See mm/README.txt */ #undef strchr
FAR char *strchr(FAR const char *s, int c) FAR char *strchr(FAR const char *s, int c)
{ {
for (; ; s++) for (; ; s++)
+1 -1
View File
@@ -49,7 +49,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL) #if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL)
#undef strchrnul /* See mm/README.txt */ #undef strchrnul
FAR char *strchrnul(FAR const char *s, int c) FAR char *strchrnul(FAR const char *s, int c)
{ {
if (s) if (s)
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP) #if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP)
#undef strcmp /* See mm/README.txt */ #undef strcmp
int strcmp(FAR const char *cs, FAR const char *ct) int strcmp(FAR const char *cs, FAR const char *ct)
{ {
register int result; register int result;
+1 -1
View File
@@ -47,7 +47,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY) #if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY)
#undef strcpy /* See mm/README.txt */ #undef strcpy
FAR char *strcpy(FAR char *dest, FAR const char *src) FAR char *strcpy(FAR char *dest, FAR const char *src)
{ {
FAR char *tmp = dest; FAR char *tmp = dest;
+1 -1
View File
@@ -41,7 +41,7 @@
* *
****************************************************************************/ ****************************************************************************/
#undef strcspn /* See mm/README.txt */ #undef strcspn
size_t strcspn(const char *s, const char *reject) size_t strcspn(const char *s, const char *reject)
{ {
size_t i; size_t i;
+1 -1
View File
@@ -34,7 +34,7 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
#undef strdup /* See mm/README.txt */ #undef strdup
FAR char *strdup(FAR const char *s) FAR char *strdup(FAR const char *s)
{ {
size_t size = strlen(s) + 1; size_t size = strlen(s) + 1;
+1 -1
View File
@@ -49,7 +49,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRLCAT) && defined(LIBC_BUILD_STRLCAT) #if !defined(CONFIG_LIBC_ARCH_STRLCAT) && defined(LIBC_BUILD_STRLCAT)
#undef strlcat /* See mm/README.txt */ #undef strlcat
size_t strlcat(FAR char *dst, FAR const char *src, size_t dsize) size_t strlcat(FAR char *dst, FAR const char *src, size_t dsize)
{ {
FAR const char *odst = dst; FAR const char *odst = dst;
+1 -1
View File
@@ -48,7 +48,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRLCPY) && defined(LIBC_BUILD_STRLCPY) #if !defined(CONFIG_LIBC_ARCH_STRLCPY) && defined(LIBC_BUILD_STRLCPY)
#undef strlcpy /* See mm/README.txt */ #undef strlcpy
size_t strlcpy(FAR char *dst, FAR const char *src, size_t dsize) size_t strlcpy(FAR char *dst, FAR const char *src, size_t dsize)
{ {
FAR const char *osrc = src; FAR const char *osrc = src;
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN) #if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN)
#undef strlen /* See mm/README.txt */ #undef strlen
size_t strlen(FAR const char *s) size_t strlen(FAR const char *s)
{ {
FAR const char *sc; FAR const char *sc;
+1 -1
View File
@@ -37,7 +37,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRNCASECMP) && defined(LIBC_BUILD_STRNCASECMP) #if !defined(CONFIG_LIBC_ARCH_STRNCASECMP) && defined(LIBC_BUILD_STRNCASECMP)
#undef strncasecmp /* See mm/README.txt */ #undef strncasecmp
int strncasecmp(FAR const char *cs, FAR const char *ct, size_t nb) int strncasecmp(FAR const char *cs, FAR const char *ct, size_t nb)
{ {
register int result = 0; register int result = 0;
+1 -1
View File
@@ -35,7 +35,7 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_LIBC_ARCH_STRNCAT) && defined(LIBC_BUILD_STRNCAT) #if !defined(CONFIG_LIBC_ARCH_STRNCAT) && defined(LIBC_BUILD_STRNCAT)
#undef strncat /* See mm/README.txt */ #undef strncat
FAR char *strncat(FAR char *dest, FAR const char *src, size_t n) FAR char *strncat(FAR char *dest, FAR const char *src, size_t n)
{ {
FAR char *ret = dest; FAR char *ret = dest;

Some files were not shown because too many files have changed in this diff Show More