From 856d226851b5fb24d919f3233ca5764ef75bed24 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 2 Nov 2011 13:26:08 -0500 Subject: Add strchr function. Change-Id: Ia9eeb1c4c6cb47409fbfdb0f267eb9943a83dad4 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/480 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran Reviewed-by: Douglas R. Gilbert --- src/include/string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/string.h') diff --git a/src/include/string.h b/src/include/string.h index aa7659349..1e1ce9113 100755 --- a/src/include/string.h +++ b/src/include/string.h @@ -26,7 +26,7 @@ #include #ifdef __cplusplus -extern "C" +extern "C" { #endif void *memset(void* s, int c, size_t n); @@ -39,6 +39,8 @@ extern "C" int strcmp(const char* s1, const char* s2); size_t strlen(const char* s1); + char* strchr(const char* s, int c); + #ifdef __cplusplus }; #endif -- cgit v1.2.3