Hugh Job
Wednesday, January 11, 2012
Allocation for string?
Your problem is not the allocation, it's the if statement before it. If wordlist[dex] is not yet allocated memory then the strcmp function will fail(probably seg fault) because you are comparing temp with a null pointer.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment