N
nertos
Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
THX
nertos
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
THX
nertos
nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
THX
nertos
Ben Pfaff said:nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
You didn't assign anything to `file'.
Allan said:Ben Pfaff said:nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
You didn't assign anything to `file'.
I didnt notice that, here was me telling him to check that file
was non-null after fopen() and he didnt even assign it!
CBFalconer said:Allan said:Ben Pfaff said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
You didn't assign anything to `file'.
I didnt notice that, here was me telling him to check that file
was non-null after fopen() and he didnt even assign it!
I suspect nertos is a troll trying to get people to trigger the
Windoze bug of crashing when backspacing at the start of a line.
Keith said:CBFalconer said:Allan said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
You didn't assign anything to `file'.
I didnt notice that, here was me telling him to check that file
was non-null after fopen() and he didnt even assign it!
I suspect nertos is a troll trying to get people to trigger the
Windoze bug of crashing when backspacing at the start of a line.
If so, he's an incompetent troll; the program won't write a
backspace character (unless it does so as an unlikely consequence
of undefined behavior). (Conceivably he just didn't test the
program because he doesn't want to crash his own system.)
I suspect nertos is a troll trying to get people to trigger the
Windoze bug of crashing when backspacing at the start of a line.
This must only be for some versions of windows is it not? I have not tried
this code on XP but I am sure I have tried very similar with no problems.
nertos said:Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
CBFalconer said:Keith said:CBFalconer said:Allan Bruce wrote:
Why doesn't this fragment work?
FILE *file;
fopen(argv[1], "r+");
fprintf(file, "\b");
You didn't assign anything to `file'.
I didnt notice that, here was me telling him to check that file
was non-null after fopen() and he didnt even assign it!
I suspect nertos is a troll trying to get people to trigger the
Windoze bug of crashing when backspacing at the start of a line.
If so, he's an incompetent troll; the program won't write a
backspace character (unless it does so as an unlikely consequence
of undefined behavior). (Conceivably he just didn't test the
program because he doesn't want to crash his own system.)
He could be a devious troll, who wants people to correct and run
his snippet. The fact that he never reappears tends to confirm my
suspicion.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.