Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Why segfault and no NULL match in for loop?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Walter Roberson, post: 2873667"] [i] [i] If you examine your mystruct data, you will see that you do not have any entries in which mystruct[<anything>] == NULL . You therefore iterate off the end of mystruct[], and start testing a non-existant mystruct[i].field1 entry. [i][i][/i][/i][/i][/i][/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Why segfault and no NULL match in for loop?
Top