Quote Originally Posted by jimblumberg View Post
You should never use gets(), this function can never be safely used, I suggest you consider using fgets() instead.

Also why the global variables?


Jim
I'll revise the code to fgets() and remove the global variables also.
Thanks