Programming Tutorials

Comment on Tutorial - Using realloc() Function in C By Charles



Comment Added by : Luke

Comment Added at : 2011-11-21 09:03:38

Comment on Tutorial : Using realloc() Function in C By Charles
Looks good, but don't use gets(). gets() is responsible for the world's problems. Use fgets() and specify the buffer. Otherwise, some nasty fellow will be inclined to overstep the bounds of your array.

View Tutorial