Admin Production ni-theme
Current Publication

perror

LabWindows/CVI

perror

void perror (const char errorMessagePrefix[]);

Purpose

Maps the error number stored in the global variable errno to an error message. It writes a sequence of characters to the standard error stream. If errorMessagePrefix is not NULL, the error message will look like the following:

errorMessagePrefix: Error ##\n

If errorMessagePrefix is NULL, the error message will look like the following:

Error ##\n

Parameters

Input
Name Type Description
errorMessagePrefix const char [] Contains a pointer to the string that is used as an error message prefix. If errorMessagePrefix is not NULL, the error message will look like the following:

errorMessagePrefix: Error ##\n

If errorMessagePrefix is NULL, the error message will look like the following: Error ##\n

Return Value

None.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later