This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix warnings and documentation in strnstr.c


Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 newlib/libc/string/strnstr.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index ce32d0f73..947355fed 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -21,17 +21,16 @@ RETURNS
 
 
 PORTABILITY
-<<strnstr>> is ANSI C.
+<<strnstr>> is a BSD extension.
 
 <<strnstr>> requires no supporting OS subroutines.
 
 QUICKREF
-	strnstr ansi pure
+	strnstr pure
 
 */
 
-#undef __STRICT_ANSI__
-#include <_ansi.h>
+#define	_GNU_SOURCE
 #include <string.h>
 
 /*
-- 
2.12.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]