vs input a string from a standard input..
does anyone have any clue as to what that means at all?
vs input a string from a standard input..
does anyone have any clue as to what that means at all?
In C, you have 3 "files" opened by default:
- stdout
- stdin
- stderr
The "std" in their names means "standard". The first two are for output and input, respectively. The last one is a special one meant for output used to report error messages.
When you use a function like printf() or puts(), you're writing to the stdout. Similarly, when you use a function like scanf() or fgets(), you're reading from stdin.
The phrase "output a string to a standard output" seems slightly off balance, as does the other one you mention, but I believe what you're reading is just basically referring to writing and reading strings from the standard streams.
fgets reads from any stream passed as a 3rd parameter, not only a stdin
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler