thanks for your time everyone.!
Type: Posts; User: iheartc
thanks for your time everyone.!
Here is the revised code. Still not sure about the way I allocated the memory. Just could not figure out without having to put in the initial fix size first.
I don't know the file size until...
Thanks Salem.
Jim,
Thanks. Yeah.. I read both your and Kurt's feedback. I moved my free function to main right before return. I also took off the increment in the printf. I guessed I thought walk through...
I got my code to work, but need some feedback if I am free up the memory correctly? Is there a way to make sure that I have clear up the memory? I just wanted to get in the good habit since I am...
Thanks Laserlight! Your quick feedback is really helpful. Now, I need to get better on passing local variable to pointer within function.
Please help. I learning about function with return pointer value.
The function is supposed to return value from the file in my main, but I am getting empty value.
I am trying to get better...