About 21,200 results
Open links in new tab
  1. c - What exactly is stdin? - Stack Overflow

    Jun 8, 2017 · 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 …

  2. Confused about stdin, stdout and stderr? - Stack Overflow

    Aug 2, 2010 · 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 …

  3. c - What is “standard input”? - Stack Overflow

    Oct 23, 2013 · 3 Yes, standard input (stdin) is input exepected from the keyboard. So, could be in the form of user input from a basic program or from a command line argument. Standard …

  4. What is stdin in C language? - Stack Overflow

    Jun 9, 2016 · 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 …

  5. 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 …

  6. 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?

  7. stdin - How to read from a file or standard input in Bash - Stack …

    Aug 8, 2011 · 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.

  8. Why are stderr, stdin, stdout defined as macros? - Stack Overflow

    May 30, 2023 · C99 defines these three as macros that "are expressions of type ‘‘pointer to FILE’’ that point to the FILE objects associated, respectively, with the standard error, input, …

  9. stdin - fgets () function in C - Stack Overflow

    I know everybody has told me to use fgets and not gets because of buffer overflow. However, I am a bit confused about the third parameter in fgets(). As I understand it, fgets is dependent …

  10. c - How to read from stdin with fgets ()? - Stack Overflow

    How to read from stdin with fgets ()? Asked 15 years, 2 months ago Modified 3 years, 3 months ago Viewed 293k times