• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 /*	This source code was extracted from the Q8 package created and placed
7     in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
8     last edit:	1999/11/05	gwyn@arl.mil
9 
10     Implements subclause 7.24 of ISO/IEC 9899:1999 (E).
11 
12 	It supports an encoding where all char codes are mapped
13 	to the *same* code values within a wchar_t or wint_t,
14 	so long as no other wchar_t codes are used by the program.
15 
16 */
17 
18 #define __CRT__NO_INLINE
19 #include	<wchar.h>
20 
21 #if 0
22 int mbsinit(const mbstate_t *ps)
23 {
24 	return 1;			/* don't have shift states */
25 }
26 #endif
27 
mbsinit(const mbstate_t * _P)28 int __cdecl mbsinit(const mbstate_t *_P)
29 {
30 	return (!_P || *_P == 0);
31 }
32 
33