/*****

      $Source: d:\gunther\source\grc/RCS/wstring.h,v $
      $Author: gunther $
      $Date: 1995/12/29 23:49:21 $
      $Revision: 1.2 $

 *****/


#ifndef _WSTRING_H
#define _WSTRING_H

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

int wcslen(wchar_t *);
wchar_t *wcscpy(wchar_t *, wchar_t *);
int wcscmp(wchar_t *, wchar_t *);
int wcscasecmp(wchar_t *, wchar_t *);
int wctomb (char *, wchar_t);
int mbtowc (wchar_t *, __const__ char *, size_t);
size_t mbstowcs (wchar_t *, __const__ char *, size_t);
size_t wcstombs (char *, __const__ wchar_t *, size_t);

#define wstrlen     wcslen
#define wstrcpy     wcscpy
#define wstrcmp     wcscmp
#define wstrcasecmp wcscasecmp
#define ansi2uni(a, b) mbstowcs((a), (b), (size_t) 0x7FFFFFFF)
#define uni2ansi(a, b) wcstombs((a), (b), (size_t) 0x7FFFFFFF)

#ifdef __cplusplus
}
#endif

#endif

