Output an error message to stderr.
This function is compatible with the following targets:
|
|
#include <stdio.h>
void perror(const char *s);Parameters:
Parameters for this facility are:
#include <errno.h>
#include <stdio.h>
int main()
{
perror("No error reported as");
errno = EDOM;
perror("Domain error reported as");
errno = ERANGE;
perror("Range error reported as");
return 0;
}
Output
No error reported as: No Error
Domain error reported as: Domain Error
Range error reported as: Range Error
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000