7 #if defined( _SMALL_PRINTF ) || defined(SMALL_SCANF)
12 _DEFUN (_wcrtomb_r, (ptr, s, wc, ps),
13 struct _reent *ptr _AND
27 _REENT_CHECK_MISC(ptr);
28 ps = &(_REENT_WCRTOMB_STATE(ptr));
33 retval = _wctomb_r (ptr, buf, L
'\0', ps);
35 retval = _wctomb_r (ptr, s, wc, ps);
44 return (
size_t)retval;
47 return (
size_t)retval;
52 _DEFUN (wcrtomb, (s, wc, ps),
57 return _wcrtomb_r (_REENT, s, wc, ps);