/**************************************************************************
*   Copyright 2000 Compaq Computer Corporation
*
*   COMPAQ Registered in U.S. Patent and Trademark Office.
*
*   Confidential computer software. Valid license from Compaq or authorized
*   sublicensor required for possession, use or copying. Consistent with
*   FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
*   Documentation, and Technical Data for Commercial Items are licensed to
*   the U.S. Government under vendor's standard commercial license.
**************************************************************************/
/*
    Overloaded function signatures for <cwchar>
*/

#ifndef _CWCHAR_OVERLOADS_
#define _CWCHAR_OVERLOADS_

#ifndef __PURE_CNAME
// Declarations needed by overloads that may not be declared
extern "C" {
extern wchar_t  *wcsstr (const wchar_t *, const wchar_t *);
extern wchar_t	*wmemchr (const wchar_t *, wchar_t, size_t);
}
#endif  /*  __PURE_CNAME */

extern "C++" {

   inline wchar_t *wcschr (wchar_t * _s, wchar_t _c) {
         return (wchar_t *) wcschr((const wchar_t*)_s, _c);
   }
   inline wchar_t *wcspbrk (wchar_t * _s1, const wchar_t * _s2) {
         return (wchar_t*) wcspbrk((const wchar_t*)_s1, _s2);
   }
   inline wchar_t *wcsrchr (wchar_t * _s, wchar_t _c) {
         return (wchar_t*) wcsrchr((const wchar_t*)_s, _c);
   }
   inline wchar_t  *wcsstr (wchar_t * _s1, const wchar_t * _s2) {
         return (wchar_t*) wcsstr((const wchar_t*)_s1, _s2);
   }
   inline wchar_t *wmemchr (wchar_t * _s, wchar_t _c, size_t _n) {
         return (wchar_t*) wmemchr((const wchar_t*)_s, _c, _n);
   }

}  /* extern "C++" */

#endif  /* _CWCHAR_OVERLOADS_ */
