version 1.10, 2001/09/27 16:30:35 |
version 1.18, 2003/04/28 23:16:15 |
|
|
#define _WCHAR_H_ |
#define _WCHAR_H_ |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
#include <sys/featuretest.h> |
#include <machine/ansi.h> |
#include <machine/ansi.h> |
#include <sys/null.h> |
#include <sys/null.h> |
|
|
|
#include <stdio.h> /* for FILE* */ |
|
|
#ifdef _BSD_WCHAR_T_ |
#ifdef _BSD_WCHAR_T_ |
typedef _BSD_WCHAR_T_ wchar_t; |
typedef _BSD_WCHAR_T_ wchar_t; |
#undef _BSD_WCHAR_T_ |
#undef _BSD_WCHAR_T_ |
Line 93 typedef _BSD_SIZE_T_ size_t; |
|
Line 96 typedef _BSD_SIZE_T_ size_t; |
|
#define WEOF ((wint_t)-1) |
#define WEOF ((wint_t)-1) |
#endif |
#endif |
|
|
|
#define getwc(f) fgetwc(f) |
|
#define getwchar() getwc(stdin) |
|
#define putwc(wc, f) fputwc((wc), (f)) |
|
#define putwchar(wc) putwc((wc), stdout) |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
wint_t btowc __P((int)); |
size_t mbrlen __P((const char * __restrict, size_t, mbstate_t * __restrict)); |
size_t mbrlen __P((const char * __restrict, size_t, mbstate_t * __restrict)); |
size_t mbrtowc __P((wchar_t * __restrict, const char * __restrict, size_t, |
size_t mbrtowc __P((wchar_t * __restrict, const char * __restrict, size_t, |
mbstate_t * __restrict)); |
mbstate_t * __restrict)); |
Line 104 size_t wcrtomb __P((char * __restrict, w |
|
Line 113 size_t wcrtomb __P((char * __restrict, w |
|
wchar_t *wcscat __P((wchar_t * __restrict, const wchar_t * __restrict)); |
wchar_t *wcscat __P((wchar_t * __restrict, const wchar_t * __restrict)); |
wchar_t *wcschr __P((const wchar_t *, wchar_t)); |
wchar_t *wcschr __P((const wchar_t *, wchar_t)); |
int wcscmp __P((const wchar_t *, const wchar_t *)); |
int wcscmp __P((const wchar_t *, const wchar_t *)); |
|
int wcscoll __P((const wchar_t *, const wchar_t *)); |
wchar_t *wcscpy __P((wchar_t * __restrict, const wchar_t * __restrict)); |
wchar_t *wcscpy __P((wchar_t * __restrict, const wchar_t * __restrict)); |
size_t wcscspn __P((const wchar_t *, const wchar_t *)); |
size_t wcscspn __P((const wchar_t *, const wchar_t *)); |
size_t wcslen __P((const wchar_t *)); |
size_t wcslen __P((const wchar_t *)); |
Line 118 size_t wcsrtombs __P((char * __restrict, |
|
Line 128 size_t wcsrtombs __P((char * __restrict, |
|
mbstate_t * __restrict)); |
mbstate_t * __restrict)); |
size_t wcsspn __P((const wchar_t *, const wchar_t *)); |
size_t wcsspn __P((const wchar_t *, const wchar_t *)); |
wchar_t *wcsstr __P((const wchar_t *, const wchar_t *)); |
wchar_t *wcsstr __P((const wchar_t *, const wchar_t *)); |
|
wchar_t *wcstok __P((wchar_t * __restrict, const wchar_t * __restrict, |
|
wchar_t ** __restrict)); |
|
size_t wcsxfrm __P((wchar_t *, const wchar_t *, size_t)); |
|
wchar_t *wcswcs __P((const wchar_t *, const wchar_t *)); |
wchar_t *wmemchr __P((const wchar_t *, wchar_t, size_t)); |
wchar_t *wmemchr __P((const wchar_t *, wchar_t, size_t)); |
int wmemcmp __P((const wchar_t *, const wchar_t *, size_t)); |
int wmemcmp __P((const wchar_t *, const wchar_t *, size_t)); |
wchar_t *wmemcpy __P((wchar_t * __restrict, const wchar_t * __restrict, |
wchar_t *wmemcpy __P((wchar_t * __restrict, const wchar_t * __restrict, |
Line 128 wchar_t *wmemset __P((wchar_t *, wchar_t |
|
Line 142 wchar_t *wmemset __P((wchar_t *, wchar_t |
|
size_t wcslcat __P((wchar_t *, const wchar_t *, size_t)); |
size_t wcslcat __P((wchar_t *, const wchar_t *, size_t)); |
size_t wcslcpy __P((wchar_t *, const wchar_t *, size_t)); |
size_t wcslcpy __P((wchar_t *, const wchar_t *, size_t)); |
int wcswidth __P((const wchar_t *, size_t)); |
int wcswidth __P((const wchar_t *, size_t)); |
|
int wctob __P((wint_t)); |
int wcwidth __P((wchar_t)); |
int wcwidth __P((wchar_t)); |
|
|
unsigned long int wcstoul __P((const wchar_t * __restrict, wchar_t ** __restrict, |
unsigned long int wcstoul __P((const wchar_t * __restrict, |
int base)); |
wchar_t ** __restrict, int base)); |
long int wcstol __P((const wchar_t * __restrict, wchar_t ** __restrict, int base)); |
long int wcstol __P((const wchar_t * __restrict, |
|
wchar_t ** __restrict, int base)); |
double wcstod __P((const wchar_t * __restrict, wchar_t ** __restrict)); |
double wcstod __P((const wchar_t * __restrict, wchar_t ** __restrict)); |
|
|
|
#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) > 199901L || \ |
|
defined(_NETBSD_SOURCE) |
|
/* LONGLONG */ |
|
long long int wcstoll __P((const wchar_t * __restrict, |
|
wchar_t ** __restrict, int base)); |
|
/* LONGLONG */ |
|
unsigned long long int wcstoull __P((const wchar_t * __restrict, |
|
wchar_t ** __restrict, int base)); |
|
#endif |
|
|
|
wint_t ungetwc __P((wint_t, FILE *)); |
|
wint_t fgetwc __P((FILE *)); |
|
wchar_t *fgetws __P((wchar_t * __restrict, int, FILE * __restrict)); |
|
wint_t getwc __P((FILE *)); |
|
wint_t getwchar __P((void)); |
|
wint_t fputwc __P((wchar_t, FILE *)); |
|
int fputws __P((const wchar_t * __restrict, FILE * __restrict)); |
|
wint_t putwc __P((wchar_t, FILE *)); |
|
wint_t putwchar __P((wchar_t)); |
|
|
|
int fwide __P((FILE *, int)); |
__END_DECLS |
__END_DECLS |
|
|
#endif /* !_WCHAR_H_ */ |
#endif /* !_WCHAR_H_ */ |