Top "Stdio" questions

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

Visual Studio 15 __imp___iob, __imp___pctype, __imp___mb_cur_max

I am trying to use a library compiled with mingw in visual studio. However, I get the following linker errors: …

c++ linker visual-studio-2015 legacy stdio
Is close/fclose on stdin guaranteed to be correct?

It seems as though the following calls do what you'd expect (close the stream and not allow any further input …

c stdio
Why is fread reaching the EOF early?

I am writing a C library that reads a file into memory. It skips the first 54 bytes of the file (…

c++ c file-io stdio feof
stdio.h not standard in C++?

I know most compilers allow both: #include <stdio.h> and #include <cstdio> But someone argued that &…

c++ stdio standard-library
Win32 - read from stdin with timeout

I'm trying to do something which I think should be simple: do a blocking read from standard input, but timing …

c++ c winapi stdio
Python: fork, pipe and exec

I want to execute a program in a python application, it will run in the background but eventually come to …

python exec fork stdio dup
Tried and true simple file copying code in C?

This looks like a simple question, but I didn't find anything similar here. Since there is no file copy function …

c file-io copy stdio
How to read / parse input in C? The FAQ

I have problems with my C program when I try to read / parse input. Help? This is a FAQ entry. …

c stdio
C fgets versus fgetc for reading line

I need to read a line of text (terminated by a newline) without making assumptions about the length. So I …

c io stdio fgets fgetc
Where to find struct _IO_FILE

I was looking through /usr/include/stdio.h and happened to come across the following piece of code. /* Standard streams. */ …

c stdio