Top "Stdio" questions

This tag is for questions regarding "Standard I/O", i.e. I/O using the facilities in the C header <stdio.

What does '#include <stdio.h>' really do in a C program

I am new to c programming and I was coding some simple programs "Hello world" style. In all of these …

c include stdio
Reading a line using scanf() not good?

scanf(" %[^\n]",line); A friend of mine suggested that using fgets() to read a line as input would be a …

c scanf stdio
What is the difference between getch() and getchar()?

What is the exact difference between the getch and getchar functions?

c io console-application stdio c-standard-library
What exactly is the FILE keyword in C?

I've started learning some C as a hobby and have blindly used FILE as a declaration for file pointers for …

c file stdio
Redirecting stdio from a command in os.system() in Python

Usually I can change stdout in Python by changing the value of sys.stdout. However, this only seems to affect …

python stdout stdio os.system
Find all a substring's occurrences and locations

I'm writing a program to parse some data saved as text files. What I am trying to do is find …

c++ iostream stdio
printf not printing to screen

If I try to run the following simple code under Cygwin on Windows 7, #include <stdio.h> int main() { …

c cygwin stdio
C equivalent to fstream's peek

I know in C++, you're able to peek at the next character by using: in.peek();. How would I go …

c filestream stdio peek
write 2d array to a file in C

I used to use the code below to Write an 1D array to a File: FILE *fp; float floatValue[5] = { 1.1F, 2.2…

c io stdio fwrite
How can I capture STDOUT to a string?

puts "hi" puts "bye" I want to store the STDOUT of the code so far (in this case hi \nbye …

ruby stdio