Hi,

I've been reading through the forums and noticed that both the use of scanf and gets are said to be bad.

I'ev no arguments with this as you people know what you're talking about, but I can't get fgets() to work...

Say, I have this code:

int main()
{
char name[20]

printf("Enter your name >> ");
fgets(name,20,stdin)
/* More rubbish..... */
}

It will just skip getting the user input, and carry on without it... What am I doing wrong??