Skip to content

Glossary: C Basics

sscanf and fscanf

Also written: sscanf, fscanf

sscanf is scanf reading from a string, and fscanf reads from a file. Both return how many fields they filled, and a number after % limits how much they read.

Where the book teaches it

Related terms

scanffgetsFormat specifier