#ifndef _REENT_ONLY int _DEFUN (vsnprintf, (str, size, fmt, ap), char *str _AND size_t size _AND _CONST char *fmt _AND va_list ap) { int ret; FILE f; f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = (size > 0 ? size - 1 : 0); ret = _vfprintf_r (_REENT, &f, fmt, ap); if (size > 0) *f._p = 0; return ret; } #endif /* !_REENT_ONLY */ int _DEFUN (_vsnprintf_r, (ptr, str, size, fmt, ap), struct _reent *ptr _AND char *str _AND size_t size _AND _CONST char *fmt _AND va_list ap) {