Cambridge, MA 02139, USA. */
#include <ansidecl.h>
-#include <localeinfo.h>
+#include "../locale/localeinfo.h"
#include <ctype.h>
#include <stddef.h>
#include <stdio.h>
int
DEFUN(mbtowc, (pwc, s, n), wchar_t *pwc AND CONST char *s AND size_t n)
{
+#if 0
register CONST mb_char *mb;
register wchar_t i;
+#endif
if (s == NULL)
return _mb_shift != 0;
return 1;
}
+#if 0
if (_ctype_info->mbchar == NULL ||
_ctype_info->mbchar->mb_chars == NULL)
return -1;
return mb->len;
}
}
+#endif
return -1;
}
Cambridge, MA 02139, USA. */
#include <ansidecl.h>
-#include <localeinfo.h>
+#include "../locale/localeinfo.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
int
DEFUN(wctomb, (s, wchar), register char *s AND wchar_t wchar)
{
+#if 0
register CONST mb_char *mb;
if (_ctype_info->mbchar == NULL)
mb = NULL;
else
mb = _ctype_info->mbchar->mb_chars;
+#endif
/* If S is NULL, just say if we're shifted or not. */
if (s == NULL)
return -1;
}
+#if 1
+ return -1;
+#else
mb += wchar + _mb_shift;
if (mb->string == NULL || mb->len == 0)
return -1;
memcpy((PTR) s, (CONST PTR) mb->string, mb->len + 1);
_mb_shift += mb->shift;
return mb->len;
+#endif
}