The following format strings can be used to specify data to be printed or read using the printf or scanf functions, or any of their variants; fprintf, sprintf, fscanf or sscanf .
Note that though all can be used with the printf variants, some are not available for scanf.