I currently am reading input from the command line.
everything entered needs to be then put into a 2 dimensional array.
using strtok to separate each item of the string by a " " (space) char.
i never know how many items the array will need to hold, or how big each element will be, they will always be char however.
at the mo i am using malloc to just assign enough space for the whole string entered.
but i keep getting this error
Code:malloc: *** error for object 0x100101d18: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug Abort trap
any ideas to get me thinking?
thanks for reading this far!