Definition
Using C’s Standard Library
These functions are part of glibc on Linux, they are implemented using Linux system calls.
C’s stdio defines the notion of a stream
- A way of reading or writing a sequence of characters to and from a device.
- Can be either text or binary, linux does not distinguish
- Is buffered by default, libc reads ahead of your program
- Three streams provided by default: stdin, stdour, stderr
- you can open additional streams to read and write to files
- C streams are manipulated with a FILE* pointer, which is defined in stdio.h


cp-example.c
Using POSIX