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
Wed Sep 14 10:06:31 BST 1994