- prototype in stdio.h - reads string from stdin until newline character is read - newline character is replaced by \0 - returns string or NULL on end-of-file or error