GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
COMERRNO(3) Schily´s LIBRARY FUNCTIONS COMERRNO(3)

comerrno() - prints error message, given error code, and exits

comerrno(error,format,args);
int error;
char *format;

comerrno() is like comerr(), except that the caller supplies the error number. Positive numbers are turned into system error messages. Negative numbers cause the system error portion of the output to be omitted. comerrno() is a convenient way to print the name of the program, and an error message, and exit the process in a single call.

none
Rather than return, comerrno() exits the current process with a value equal to the error number supplied by the user.

if (argc < 2)
	comerrno(-1, "Usage: name arg.\n");

comerr(3), error(3), errmsg(3), error(3) geterrno(3), printf(3), format(3)

comerrno() attempts to find a line in the message file that corresponds to the system error number. If none can be found, or if it has trouble finding or reading the file, it simply says: error #.
15. Juli 1988 Joerg Schilling

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.