Cios, for C Input/Output Streams, is a library for implementing general-purpose data stream devices in C, allowing for the same code to be used to access streams of a variety of different types, ranging from file streams to memory streams to custom streams.