1 /* This source code was extracted from the Q8 package created and placed
2 in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
3 last edit: 1999/11/05 gwyn@arl.mil
5 Implements subclause 7.24 of ISO/IEC 9899:1999 (E).
7 It supports an encoding where all char codes are mapped
8 to the *same* code values within a wchar_t or wint_t,
9 so long as no other wchar_t codes are used by the program.
21 register const wchar_t *s2;
24 wchar_t *orig_s1 = s1;
26 if ( s1 == NULL || s2 == NULL || n == 0 )
27 return orig_s1; /* robust */
29 /* XXX -- The following test works only within a flat address space! */