# ErrorPrintf

int ErrorPrintf (const char formatString[], ...);

## Purpose

ErrorPrintf is similar to the ANSI C printf function, but ErrorPrintf writes output to the LabWindows/CVI Run-time Errors Window if the program is being debugged by LabWindows/CVI. If the program is not being debugged, no output occurs.

If the program is being debugged by another development environment the output may appear in that development environments' debug output window.

Linux This function is not supported.

## Parameters

Input
Name | Type | Description
formatString | const char [] | The format string that specifies how subsequent arguments are converted for output. The format string format is identical to the format supported by the ANSI C printf function. Refer to the documentation for the ANSI C printf function for information about the format. If the format requires more arguments than the number of arguments passed to this function, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.
source_s | any type (passed by value) | Specifies one or more arguments that are to be converted and written to the debug output window. You must separate multiple arguments by commas.

## Return Value

Name | Type | Description
numberOfCharactersWritten | integer | The number of characters transmitted, or a negative value if an output error occurred.