By what i have read, fgets is the best and safest way to read a string from the user.
The problem is that my program has a thread where a printf is executed. Is seems the \n at the end of the printf is triggering the fgets.
Any way to get around this, or do i have to use another function to read the string?