fscanf reads from a file
sscanf reads from a string
scanf reads from stdin
All do the same thing in terms of conversions and assignments. It's only the source of the characters which differ.
...