somealien
05-28-02, 15:07
| :confused: I'm very confused. I'm writing a C program but keep getting segmentation faults when i get to the if-statement. the weirdest thing is that the program works if the statement ends up being true. i get the seg-faults when its false. here's the notorious if-statement: if ( !strncmp( text, "ATOM ", 5) && text[13] != 'H' ) { blah blah blah } thanks a lot to anyone who can help :p |