iPXE
wchar.h
Go to the documentation of this file.
00001 #ifndef WCHAR_H
00002 #define WCHAR_H
00003 
00004 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00005 
00006 #include <stddef.h>
00007 
00008 typedef void mbstate_t;
00009 
00010 /**
00011  * Convert wide character to multibyte sequence
00012  *
00013  * @v buf               Buffer
00014  * @v wc                Wide character
00015  * @v ps                Shift state
00016  * @ret len             Number of characters written
00017  *
00018  * This is a stub implementation, sufficient to handle basic ASCII
00019  * characters.
00020  */
00021 static inline __attribute__ (( always_inline ))
00022 size_t wcrtomb ( char *buf, wchar_t wc, mbstate_t *ps __unused ) {
00023         *buf = wc;
00024         return 1;
00025 }
00026 
00027 extern size_t wcslen ( const wchar_t *string );
00028 
00029 #endif /* WCHAR_H */