#include <iostream>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <errno.h>
using namespace std;
int main(int argc, char *argv [])
{
char sz [] = "Hello, World!"; //Hover mouse over "sz" while debugging to see its contents
cout << sz << endl; //<================= Put a breakpoint here
char * mesg = strerror(ENOENT);
printf("%d\n", ENOENT);
printf("%s\n", mesg);
if (remove("/home/test") == 0)
{
printf("ok\n");
}
else
{
char * mesg = strerror(errno);
printf("%d\n", errno);
printf("%s\n", mesg);
}
return 0;
}
/*
Hello, World!
2
No such file or directory
2
No such file or directory
*/
strerror
最新推荐文章于 2023-10-09 17:36:54 发布