Sfio is a library of functions for efficient IO on buffered streams. Each Sfio stream is a file stream, representing a file, or a string stream, representing a memory segment. Beyond usual IO operations, Sfio provides IO disciplines for application specific data processing, and extends the sfprintf sfscanf family of functions.