INtime SDK Help
perror, _wperror

Prints an error message to stderr.

#include <stdio.h>

void perror (const char *string);

#include <wchar.t>

void _wperror(const wchar_t *string);

Parameters

string
Message to print.

Remarks

The string argument prints first, followed by a colon, the system error message for the last library call that produced the error, and a newline character.

If string is a null pointer or a pointer to a null string, perror prints only the system error message.

The actual error number is stored in the pseudo-variable errno. The system error messages are accessed through strerror.

To produce accurate results, call perror immediately after an error occurs. Otherwise, the errno value may be overwritten by subsequent calls.

_wperror is the wide-character version of perror.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_tperror perror _wperror

Requirements

Versions Defined in Include Link to
INtime 3.0
INtime 6.0 (for wide-character and generic text versions)
intime/rt/include/stdio.h
intime/rt/include/wchar.h
intime/rt/include/tchar.h
stdio.h
wchar.h
tchar.h
clib.lib
See Also