Hi all
I am opening a file that does not exists.
But after i got message File does not exists,
gdb does not stop.What should i do?
Suggestions are welcome.
Thanks.
my program:
int main (int argc, const char * argv[])
{
FILE* fd;
fd = fopen("abc123.txt", "r");
if(NULL == fd)
{
printf("File does not exists\n");
return -1;
}
printf("File Opened\n");
return 0;
}
And here is the output:
Not a file
Debugger stopped.
Program exited with status value:255.The program being debugged is not being run.
The program being debugged is not being run.
(gdb)
0 comments:
Post a Comment