Re: Problems with a for loop
Good day to you Sir,
I observe that your code is indeed somewhat flawed in numerous occurring places. Please check your indentation, and recompile. This fixes numerous bugs and errors for me even including that somewhat elusive error of the most awful buffer overrun.
Also allocating memory in C is a sure fire Savoy Grill recipe for disaster. One must consider not just the implications of the memory allocation, but remember this: You must free not just the memory, but the whole object.
I hope my assistance is valued,
A Former Prime Minister.