LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

vfprintf

vfprintf

int vfprintf (FILE *stream, const char formatString[], va_list argumentList);

Purpose

Writes output to the specified stream according to format specifiers in formatString. This function is similar to fprintf except that vfprintf takes as a parameter an argument list initialized by the va_start macro.

Note Note  You cannot execute this function panel because of the nature of how variable argument lists are created.

Parameters

Input
Name Type Description
stream FILE * Contains a pointer to the stream to which the formatted output is written.
formatString const char [] Contains the format string that specifies how subsequent arguments are converted for output. Use standard ANSI C format specifiers. If insufficient arguments exist for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.
Note Note  For more information about the standard ANSI C format specifiers, refer to an external ANSI C reference.
argumentList va_list Contains a variable argument list initialized by the va_start macro and possibly subsequent va_arg calls.

Return Value

Name Type Description
CharactersWritten int Contains the number of characters transmitted or a negative value if an output error occurred. If an error occurs, vfprintf sets errno to a nonzero value.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

vprintf

Previous

vprintf