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.
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.