Heavy fix
[meinos.git] / apps / include / wchar.h
blob885b8a1fd4e0dd6648584ef12d7718747993e407
1 /*
2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _WCHAR_H_
20 #define _WCHAR_H_
22 #include <stdio.h>
23 #include <stddef.h>
24 #include <stdarg.h>
26 typedef wchar_t wint_t;
28 wint_t btowc(int c);
30 wchar_t* wcpcpy (wchar_t* dest, const wchar_t* src);
31 wchar_t* wcpncpy (wchar_t* dest, const wchar_t* src, size_t n);
32 wchar_t* wcscat (wchar_t* dest, const wchar_t* src);
33 wchar_t* wcschr (const wchar_t* wcs, wchar_t wc);
34 int wcscmp (const wchar_t* s1, const wchar_t* s2);
35 wchar_t* wcscpy (wchar_t* dest, const wchar_t* src);
36 size_t wcscspn (const wchar_t* wcs, const wchar_t* reject);
37 wchar_t* wcsdup (const wchar_t* s);
38 size_t wcslen (const wchar_t* s);
39 wchar_t* wcsncat (wchar_t* dest, const wchar_t* src, size_t n);
40 int wcsncmp (const wchar_t* s1, const wchar_t* s2, size_t n);
41 wchar_t* wcsncpy (wchar_t* dest, const wchar_t* src, size_t n);
42 size_t wcsnlen (const wchar_t* s, size_t maxlen);
43 wchar_t* wcspbrk (const wchar_t* wcs, const wchar_t* accept);
44 wchar_t* wcsrchr (const wchar_t* wcs, wchar_t wc);
45 size_t wcsspn (const wchar_t* wcs, const wchar_t* accept);
46 wchar_t* wcsstr (const wchar_t* haystack, const wchar_t* needle);
47 wchar_t* wcstok (wchar_t* wcs, const wchar_t* delim, wchar_t** ptr);
48 wchar_t* wmemchr (const wchar_t* s, wchar_t c, size_t n);
49 int wmemcmp (const wchar_t* s1, const wchar_t* s2, size_t n);
50 wchar_t* wmemcpy (wchar_t* dest, const wchar_t* src, size_t n);
51 wchar_t* wmemmove (wchar_t* dest, const wchar_t* src, size_t n);
52 wchar_t* wmemset (wchar_t* s, wchar_t c, size_t n);
54 #endif