Global web icon
stackoverflow.com
https://stackoverflow.com/questions/44423865/what-…
c - What exactly is stdin? - Stack Overflow
I am a bit confused regarding the implementation of stdin. What exactly is it? Is it a pointer? I tried to print the size of stdin using sizeof on a 64 bit machine and got 8. I even de-referenced it
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3385201/confus…
Confused about stdin, stdout and stderr? - Stack Overflow
Most programs need to read input, write output, and log errors, so stdin, stdout, and stderr are predefined for you, as a programming convenience. This is only a convention, and is not enforced by the operating system.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1450393/how-do…
python - How do I read from stdin? - Stack Overflow
How do I read from standard input (stdin)?There's a few ways to do it. sys.stdin is a file-like object on which you can call functions read or readlines if you want to read everything or you want to read everything and split it by newline automatically. (You need to import sys for this to work.) If you want to prompt the user for input, you can use raw_input in Python 2.X, and just input in ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/4023895/how-do…
stdin - How do I read a string entered by the user in C ... - Stack ...
I want to read the name entered by my user using C programmes. For this I wrote: char name [20]; printf ("Enter name: "); gets (name); But using gets is not good, so what is a better way?
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/6980090/how-to…
stdin - How to read from a file or standard input in Bash - Stack Overflow
Reading from stdin into a variable or from a file into a variable. Most examples in the existing answers use loops that immediately echo each of line as it is read from stdin.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/37719915/what-…
What is stdin in C language? - Stack Overflow
stdin is an "input stream", which is an abstract term for something that takes input from the user or from a file. It is an abstraction layer sitting on top of the actual file handling and I/O.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/15102992/what-…
What is the difference between stdin and STDIN_FILENO?
26 stdin is a default FILE pointer used to get input from none other than standard in. STDIN_FILENO is the default standard input file descriptor number which is 0. It is essentially a defined directive for general use.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3919009/how-to…
c - How to read from stdin with fgets ()? - Stack Overflow
How to read from stdin with fgets ()? Asked 15 years, 1 month ago Modified 3 years, 2 months ago Viewed 292k times
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/76365216/why-a…
Why are stderr, stdin, stdout defined as macros? - Stack Overflow
No. Assigning to stdin, stdout, and stderr must be avoided for strict conformance to the C language specification (which roughly equates to "to keep things portable"). If you want to associate one of the standard streams with a different destination, then that is the primary purpose of the freopen() function, available in all versions of ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/3495092/read-f…
c - Read from file or stdin - Stack Overflow
5 You can just read from stdin unless the user supply a filename ? If not, treat the special "filename" - as meaning "read from stdin". The user would have to start the program like cat file | myprogram - if he wants to pipe data to it, and myprogam file if he wants it to read from a file.