From the course: C Standard Library
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Constants and types
- [Instructor] Let's get to know some of the most useful constants and types defined throughout the C standard library. Let's start with Null. This is a constant defined as a macro in a number of header files. It's the standard constant used to represent the null pointer and its actual value depends on the underlying architecture, but it's usually zero. File is a data type used as a handle for input, output streams. Admittedly, a more accurate name for this type would be Stream, but maybe it was named File because files are accessed through character streams. Fpos_t is a type used to keep track of the current position in an open file that's being read or written to. Both types are defined in <stdio.h>. Stdin, stdout and stderr are constant macros defined in <stdio.h>. These are pointer constants associated with three character streams. Stdin for console input, stdout for console output, and stderr for error reporting. EOF is a constant macro defined in <stdio.h>. It stands for end of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.