This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 2/2] Port strnstr.c to newlib.
- From: Sichen Zhao <1473996754 at qq dot com>
- To: newlib at sourceware dot org
- Cc: gedare at rtems dot org, joel at rtems dot org, christian dot mauderer at embedded-brains dot de, Sichen Zhao <1473996754 at qq dot com>
- Date: Thu, 24 Aug 2017 10:14:10 +0800
- Subject: [PATCH 2/2] Port strnstr.c to newlib.
- Authentication-results: sourceware.org; auth=none
- Feedback-id: esmtp:qq.com:bgforeign:bgforeign3
- References: <1503540850-3233-1-git-send-email-1473996754@qq.com>
---
newlib/libc/string/Makefile.am | 1 +
newlib/libc/string/strnstr.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
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 \
diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index 4de757d..da5e5bd 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -35,7 +35,7 @@
static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: head/lib/libc/string/strnstr.c 251069 2013-05-28 20:57:40Z emaste $");
#include <string.h>
--
2.7.4