This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] string.h/strings.h synopsis
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 23 Aug 2011 06:48:21 +0200
- Subject: [patch] string.h/strings.h synopsis
Hi,
The patch below changes the synopsis of the string.h/strings.h-change-
affected files in newlib to let their documentation reference
"#include <strings.h>" instead of "#include <string.h>".
Ralf
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
libc/string/strcasecmp.c, libc/string/strncasecmp.c:
Let synopsis reference "#include <strings.h>".
Index: libc/misc/ffs.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/misc/ffs.c,v
retrieving revision 1.3
diff -u -r1.3 ffs.c
--- libc/misc/ffs.c 22 Aug 2011 16:49:36 -0000 1.3
+++ libc/misc/ffs.c 23 Aug 2011 04:19:36 -0000
@@ -6,9 +6,11 @@
ffs
ANSI_SYNOPSIS
+ #include <strings.h>
int ffs(int <[word]>);
TRAD_SYNOPSIS
+ #include <strings.h>
int ffs(<[word]>);
DESCRIPTION
Index: libc/string/bcmp.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/bcmp.c,v
retrieving revision 1.4
diff -u -r1.4 bcmp.c
--- libc/string/bcmp.c 19 Aug 2011 16:58:20 -0000 1.4
+++ libc/string/bcmp.c 23 Aug 2011 04:19:36 -0000
@@ -6,11 +6,11 @@
bcmp
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int bcmp(<[s1]>, <[s2]>, <[n]>)
const void *<[s1]>;
const void *<[s2]>;
Index: libc/string/bcopy.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/bcopy.c,v
retrieving revision 1.3
diff -u -r1.3 bcopy.c
--- libc/string/bcopy.c 19 Aug 2011 16:58:20 -0000 1.3
+++ libc/string/bcopy.c 23 Aug 2011 04:19:36 -0000
@@ -3,7 +3,7 @@
<<bcopy>>---copy memory regions
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
TRAD_SYNOPSIS
Index: libc/string/bzero.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/bzero.c,v
retrieving revision 1.3
diff -u -r1.3 bzero.c
--- libc/string/bzero.c 22 Aug 2011 16:49:37 -0000 1.3
+++ libc/string/bzero.c 23 Aug 2011 04:19:36 -0000
@@ -6,11 +6,11 @@
bzero
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
void bzero(void *<[b]>, size_t <[length]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
void bzero(<[b]>, <[length]>)
void *<[b]>;
size_t <[length]>;
Index: libc/string/index.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/index.c,v
retrieving revision 1.2
diff -u -r1.2 index.c
--- libc/string/index.c 22 Aug 2011 16:49:37 -0000 1.2
+++ libc/string/index.c 23 Aug 2011 04:19:36 -0000
@@ -6,11 +6,11 @@
index
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
char * index(const char *<[string]>, int <[c]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
char * index(<[string]>, <[c]>);
char *<[string]>;
int *<[c]>;
Index: libc/string/rindex.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/rindex.c,v
retrieving revision 1.2
diff -u -r1.2 rindex.c
--- libc/string/rindex.c 22 Aug 2011 16:49:37 -0000 1.2
+++ libc/string/rindex.c 23 Aug 2011 04:19:36 -0000
@@ -10,7 +10,7 @@
char * rindex(const char *<[string]>, int <[c]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
char * rindex(<[string]>, <[c]>);
char *<[string]>;
int *<[c]>;
Index: libc/string/strcasecmp.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/strcasecmp.c,v
retrieving revision 1.4
diff -u -r1.4 strcasecmp.c
--- libc/string/strcasecmp.c 22 Aug 2011 16:49:37 -0000 1.4
+++ libc/string/strcasecmp.c 23 Aug 2011 04:19:36 -0000
@@ -6,11 +6,11 @@
strcasecmp
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int strcasecmp(const char *<[a]>, const char *<[b]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int strcasecmp(<[a]>, <[b]>)
char *<[a]>;
char *<[b]>;
Index: libc/string/strncasecmp.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/strncasecmp.c,v
retrieving revision 1.5
diff -u -r1.5 strncasecmp.c
--- libc/string/strncasecmp.c 22 Aug 2011 16:49:37 -0000 1.5
+++ libc/string/strncasecmp.c 23 Aug 2011 04:19:36 -0000
@@ -6,11 +6,11 @@
strncasecmp
ANSI_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int strncasecmp(const char *<[a]>, const char * <[b]>, size_t <[length]>);
TRAD_SYNOPSIS
- #include <string.h>
+ #include <strings.h>
int strncasecmp(<[a]>, <[b]>, <[length]>)
char *<[a]>;
char *<[b]>;