Standard Linux Error Messages

Ever wanted to know what a particular error code means when you are left without the informative error message text?

Use the following small C program to find out:

#include <stdio.h>
#include <errno.h>
int main (int argc, char* argv[])
	if (argc < 2)
		printf("Supply the errno on the cmdline.\n");
		return 0;
	errno = atoi(argv[1]);
	return errno;

This can be considered a very simple equivalent to the Windows 'Visual C++ Error Lookup' program (but I've also included here to test out Geshi syntax highlighting).