Compartilhar via


vfprintf, vfwprintf

Write formatted output using a pointer to a list of arguments.

intvfprintf(FILE*stream,constchar*format,va_listargptr**);**

intvfwprintf(FILE*stream,constwchar_t*format,va_listargptr );

Routine Required Header Optional Headers Compatibility
vfprintf <stdio.h> and <stdarg.h> <varargs.h>1 ANSI, Win 95
vfwprintf <stdio.h> or <wchar.h>, and <stdarg.h> <varargs.h>1 ANSI, Win 95, Win NT

1 Required for UNIX V compatibility.

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

vfprintf and vfwprintf return the number of characters written, not including the terminating null character, or a negative value if an output error occurs.

Parameters

stream

Pointer to FILE structure

format

Format specification

argptr

Pointer to list of arguments

For more information, see Format Specifications.

Remarks

Each of these functions takes a pointer to an argument list, then formats and writes the given data to stream.

Generic-Text Routine Mappings

TCHAR.H Routine _UNICODE & _MBCS Not Defined _MBCS Defined _UNICODE Defined
_vftprintf vfprintf vfprintf vfwprintf

Stream I/O Routinesvprintf Functions Overview

See Also   fprintf, printf,sprintf, va_arg