-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew,
Andrew Hole wrote:
| I don't have perl installed in production servers, but it is windows
server
| 2003.
You could always try this:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_ERROR_STRING_LENGTH 1024
int main(int argc, char *argv[]) {
~ int error_num;
~ char error_msg[MAX_ERROR_STRING_LENGTH];
~ if(argc < 2) {
~ printf("Usage: %s errno\n", argv[0]);
~ return 1;
~ }
~ error_num = atoi(argv[1]);
~ strerror_r(error_num, error_msg, MAX_ERROR_STRING_LENGTH);
~ printf("Error %d: %s\n", error_num, error_msg);
~ return 0;
}
Also, if you are using MySQL, it comes with a "perror" program that
basically does what the above does (but also reports MySQL error
numbers, too). Not sure if that's included in the win32 build, though.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkghzrwACgkQ9CaO5/Lv0PAA0gCePllyQnGBc1AGsOJuzf+gk/cH
6bkAn3xqSAHYeIJq006pR1wskBNMUG8i
=QaJQ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]