1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
5 #include <internal/file.h>
9 _vstprintf(_TCHAR
*str
, const _TCHAR
*fmt
, va_list ap
)
14 f
._flag
= _IOWRT
|_IOSTRG
|_IOBINARY
;
18 len
= _vftprintf(&f
,fmt
, ap
);
25 _vsntprintf(_TCHAR
*str
, size_t maxlen
, const _TCHAR
*fmt
, va_list ap
)
30 f
._flag
= _IOWRT
|_IOSTRG
|_IOBINARY
;
34 len
= _vftprintf(&f
,fmt
, ap
);
35 // what if the buffer is full ??
36 *(_TCHAR
*)f
._ptr
= 0;