【C11】errno
The header <errno.h> defines several macros, all relating to the reporting of error conditions
#define _CRT_SECURE_NO_WARNINGS #include <errno.h> #include <stdio.h> #include <string.h> #include <math.h> int main(int argc, char *argv[]) { sqrt(-1.0); printf("%d %s\n", errno, strerror(errno)); return 0; }