public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Port strnstr.c to newlib.
@ 2017-08-25 16:02 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-08-25 16:02 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c206d0442279fb1c0e39f62112ceaae5630d9ef7

commit c206d0442279fb1c0e39f62112ceaae5630d9ef7
Author: Sichen Zhao <1473996754@qq.com>
Date:   Fri Aug 25 15:35:39 2017 +0800

    Port strnstr.c to newlib.

Diff:
---
 newlib/libc/include/string.h   | 3 +++
 newlib/libc/string/Makefile.am | 1 +
 2 files changed, 4 insertions(+)

diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 7833aa1..9c536f3 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -121,6 +121,9 @@ size_t	 _EXFUN(strnlen,(const char *, size_t));
 #if __BSD_VISIBLE
 char 	*_EXFUN(strsep,(char **, const char *));
 #endif
+#if __BSD_VISIBLE
+char    *strnstr(const char *, const char *, size_t) __pure;
+#endif
 
 #if __MISC_VISIBLE
 char	*_EXFUN(strlwr,(char *));
diff --git a/newlib/libc/string/Makefile.am b/newlib/libc/string/Makefile.am
index e62f286..f8bd41e 100644
--- a/newlib/libc/string/Makefile.am
+++ b/newlib/libc/string/Makefile.am
@@ -40,6 +40,7 @@ GENERAL_SOURCES = \
 	strncmp.c \
 	strncpy.c \
 	strnlen.c \
+	strnstr.c \
 	strpbrk.c \
 	strrchr.c \
 	strsep.c \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-25 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 16:02 [newlib-cygwin] Port strnstr.c to newlib Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).