string.h

00001 /*  wcecompat: Windows CE C Runtime Library "compatibility" library.
00002  *
00003  *  Copyright (C) 2001-2002 Essemer Pty Ltd.  All rights reserved.
00004  *  http://www.essemer.com.au/
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 
00022 #ifndef __wcecompat__STRING_H__
00023 #define __wcecompat__STRING_H__
00024 
00025 #include "stddef.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 char *  __cdecl strerror(int errnum);
00032 
00033 // Widechar string functions
00034 _CRTIMP wchar_t * __cdecl wcscat(wchar_t *, const wchar_t *);
00035 _CRTIMP wchar_t * __cdecl wcschr(const wchar_t *, wchar_t);
00036 _CRTIMP int       __cdecl wcscmp(const wchar_t *, const wchar_t *);
00037 _CRTIMP wchar_t * __cdecl wcscpy(wchar_t *, const wchar_t *);
00038 _CRTIMP size_t    __cdecl wcscspn(const wchar_t *, const wchar_t *);
00039 _CRTIMP size_t    __cdecl wcslen(const wchar_t *);
00040 _CRTIMP size_t    __cdecl mbstowcs(wchar_t *wcstr, const char *mbstr, size_t count);
00041 _CRTIMP size_t    __cdecl wcstombs(char *mbstr, const wchar_t *wcstr, size_t count);
00042 _CRTIMP wchar_t * __cdecl wcsncat(wchar_t *, const wchar_t *, size_t);
00043 _CRTIMP int       __cdecl wcsncmp(const wchar_t *, const wchar_t *, size_t);
00044 _CRTIMP wchar_t * __cdecl wcsncpy(wchar_t *, const wchar_t *, size_t);
00045 _CRTIMP wchar_t * __cdecl wcspbrk(const wchar_t *, const wchar_t *);
00046 _CRTIMP wchar_t * __cdecl wcsrchr(const wchar_t *, wchar_t);
00047 _CRTIMP size_t    __cdecl wcsspn(const wchar_t *, const wchar_t *);
00048 _CRTIMP wchar_t * __cdecl wcsstr(const wchar_t *, const wchar_t *);
00049 _CRTIMP wchar_t * __cdecl wcstok(wchar_t *, const wchar_t *);
00050 _CRTIMP wchar_t * __cdecl _wcsdup(const wchar_t *);
00051 _CRTIMP int       __cdecl _wcsicmp(const wchar_t *, const wchar_t *);
00052 _CRTIMP int       __cdecl _wcsnicmp(const wchar_t *, const wchar_t *, size_t);
00053 _CRTIMP wchar_t * __cdecl _wcsnset(wchar_t *, wchar_t, size_t);
00054 _CRTIMP wchar_t * __cdecl _wcsrev(wchar_t *);
00055 _CRTIMP wchar_t * __cdecl _wcsset(wchar_t *, wchar_t);
00056 _CRTIMP wchar_t * __cdecl _wcslwr(wchar_t *);
00057 _CRTIMP wchar_t * __cdecl _wcsupr(wchar_t *);
00058 
00059 // Non STDC old names for above
00060 #define wcsdup    _wcsdup
00061 #define wcsicmp   _wcsicmp
00062 #define wcsnicmp  _wcsnicmp
00063 #define wcsnset   _wcsnset
00064 #define wcsrev    _wcsrev
00065 #define wcsset    _wcsset
00066 #define wcslwr    _wcslwr
00067 #define wcsupr    _wcsupr
00068 
00069 // ANSI string functions
00070 size_t __cdecl strlen(const char *);
00071 int    __cdecl strcmp(const char *, const char *);
00072 char * __cdecl strcat(char *, const char *);
00073 char * __cdecl strcpy(char *, const char *);
00074 
00075 _CRTIMP char * __cdecl strchr(const char *, int);
00076 _CRTIMP size_t __cdecl strcspn(const char *, const char *);
00077 _CRTIMP char * __cdecl strncat(char *, const char *, size_t);
00078 _CRTIMP int    __cdecl strncmp(const char *, const char *, size_t);
00079 _CRTIMP char * __cdecl strncpy(char *, const char *, size_t);
00080 _CRTIMP char * __cdecl strstr(const char *, const char *);
00081 _CRTIMP char * __cdecl strtok(char *, const char *);
00082 
00083 _CRTIMP int     __cdecl _stricmp(const char *, const char *);
00084 _CRTIMP int     __cdecl _strnicmp(const char *, const char *, size_t);
00085 _CRTIMP char *  __cdecl strpbrk(const char *, const char *);
00086 _CRTIMP char *  __cdecl strrchr(const char *, int);
00087 _CRTIMP size_t  __cdecl strspn(const char *, const char *);
00088 _CRTIMP char *  __cdecl _strdup(const char *);
00089 _CRTIMP char *  __cdecl _strnset(char *, int, size_t);
00090 _CRTIMP char *  __cdecl _strrev(char *);
00091 char *  __cdecl _strset(char *, int);
00092 _CRTIMP char *  __cdecl _strlwr(char *);
00093 _CRTIMP char *  __cdecl _strupr(char *);
00094 
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098 
00099 #endif /* __wcecompat__STRING_H__ */

Generated on Mon Jun 5 10:20:45 2006 for Intelligence.kdevelop by  doxygen 1.4.6