This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 136b33fc05ddd685bd8cbb2bd01bcb1813d5fdd2
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Oct 29 19:55:03 2026 +0100

    Documentation: Show bcmp(), bcopy() and bzero() as functions.
    
    The <strings.h> list of the file system interfaces showed bcmp(),
    bcopy(), bzero(), index() and rindex() as macros.  They are functions of
    libc now: show their prototypes.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 Documentation/reference/user/10_filesystem.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/reference/user/10_filesystem.rst 
b/Documentation/reference/user/10_filesystem.rst
index 268dc0b52ea..29a44821756 100644
--- a/Documentation/reference/user/10_filesystem.rst
+++ b/Documentation/reference/user/10_filesystem.rst
@@ -440,11 +440,11 @@ Standard String Operations
 
   #include <strings.h>
 
-  #define bcmp(b1,b2,len)  memcmp(b1,b2,(size_t)len)
-  #define bcopy(b1,b2,len) memmove(b2,b1,len)
-  #define bzero(s,n)       memset(s,0,n)
-  #define index(s,c)       strchr(s,c)
-  #define rindex(s,c)      strrchr(s,c)
+  int    bcmp(const void *b1, const void *b2, size_t len);
+  void   bcopy(const void *b1, void *b2, size_t len);
+  void   bzero(void *s, size_t n);
+  char  *index(const char *s, int c);
+  char  *rindex(const char *s, int c);
 
   int    ffs(int j);
   int    strcasecmp(const char *, const char *);

Reply via email to