#Quick question using fgets
17 messages · Page 1 of 1 (latest)
@surreal epoch
Screenshots!
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Can you give us both the source code as well as the command you are using to compile your code?
why do you have the
test_fget.c: In Function 'main':
at the top of the file?
dont use scanf at all.. use fgets() all the way
It is not valid C code
Either comment it out (put // at the start of the line), or remove it