Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Program won't crash when it should

Name: Anonymous 2012-01-16 3:24

(GCC C)
I ran a pointer over each member of an integer array, storing one character of input in each cell.

The program seems to consistently crash when I try to store X+3 or more characters, where X is the size of the array, but if I do not exceed X+2 it will not crash.

Why does it crashes exactly at the point it does, but not for X+1 or X+2?

Name: Anonymous 2012-01-16 20:35

>>89

What the fuck are you talking about, you brutish retard?

You're the one which provided a ridiculous and defective example, cited "pipe blocking" issues to justify your failure and now is trying to fix your own argument with something a dozen people has already told you: the C standard does not give a fuck about pipes or terminals, dumbass. The program is completely correct.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List