sptchar.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1996 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef sptchar_INCLUDED
#define sptchar_INCLUDED 1
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#ifdef SP_NAMESPACE
#endif
#ifdef SP_WIDE_SYSTEM
#define SP_T(x) L ## x
inline
{
return _wgetenv(s);
}
inline
{
}
inline
{
}
inline
{
}
inline
{
}
inline
{
return wcschr(s, c);
}
inline
{
return wcschr(s, c);
}
inline
{
return wcslen(s);
}
inline
{
}
inline
{
return towupper(c);
}
#else /* not SP_WIDE_SYSTEM */
typedef char SP_TCHAR;
typedef unsigned char SP_TUCHAR;
#define SP_T(x) x
inline
char *tgetenv(const char *s)
{
return getenv(s);
}
inline
{
}
inline
{
}
inline
{
}
inline
{
}
inline
const char *tcschr(const char *s, int c)
{
return strchr(s, c);
}
inline
char *tcschr(char *s, int c)
{
return strchr(s, c);
}
inline
{
return strlen(s);
}
inline
{
}
inline
int totupper(int c)
{
return toupper(c);
}
#endif /* not SP_WIDE_SYSTEM */
#ifdef SP_NAMESPACE
}
#endif
#endif /* not sptchar_INCLUDED */