You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/06/02 02:52:08 UTC

svn commit: r543684 - /incubator/stdcxx/trunk/include/ansi/string.h

Author: sebor
Date: Fri Jun  1 17:52:07 2007
New Revision: 543684

URL: http://svn.apache.org/viewvc?view=rev&rev=543684
Log:
2007-06-01  Martin Sebor  <se...@roguewave.com>

	STDCXX-433
	* string.h (strpbrk): Added declaration and definition when
	the function is not declared in the system string.h header.

Modified:
    incubator/stdcxx/trunk/include/ansi/string.h

Modified: incubator/stdcxx/trunk/include/ansi/string.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/string.h?view=diff&rev=543684&r1=543683&r2=543684
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/string.h (original)
+++ incubator/stdcxx/trunk/include/ansi/string.h Fri Jun  1 17:52:07 2007
@@ -113,6 +113,20 @@
 #endif   // _RWSTD_NO_MEMCHR && !_RWSTD_NO_MEMCHR_IN_LIBC
 
 
+#if defined (_RWSTD_NO_STRPBRK) && !defined (_RWSTD_NO_STRPBRK_IN_LIBC)
+
+extern "C" char* strpbrk (char*, const char*);
+
+inline const char* strpbrk (const char *__s, const char *__pat)
+{
+    return strpbrk (_RWSTD_CONST_CAST (char*, __s), __pat);
+}
+
+#  undef _RWSTD_NO_STRPBRK
+
+#endif   // _RWSTD_NO_STRPBRK && !_RWSTD_NO_STRPBRK_IN_LIBC
+
+
 #if defined (_RWSTD_NO_STRCHR) && !defined (_RWSTD_NO_STRCHR_IN_LIBC)
 
 extern "C" char* strchr (char*, int);