Next: Command line input Up: Input and Output (I/O) Previous: Reading and writing FILES

sprintf and sscanf

These are like fprintf and fscanf except they read/write to a string.

int sprintf(char *string, char *format, args..)

int sscanf(char *string, char *format, args..)

For Example:


Dave.Marshall@cm.cf.ac.uk
Fri May 20 13:40:49 BST 1994