Changes

Jump to: navigation, search

Assignment 1: Q & A

2 bytes added, 12:42, 20 September 2012
Q & A
'''A:''' I have (Kevin from Team 9). What kind of crash are you talking about? Everything works fine when I compile.<br>
'''Q:'''It compiles, but when we edit the line for the first time and then press enter, then it crashes.<br>
'''A:''' Make sure that you aren't overwriting the null byte at any point in the editing. After terminating the exit edit() function, a1test does a strcmp() of str and the successful string. <br>
If str is missing a null byte, it might be strcmp() crashing your program. Are you getting a seg fault? (Submitted by: Team 9)

Navigation menu