printf() and scanf()

More conversions are possible for the C functions for reading and writing formatted data. These functions are shown in the following listing.

Listing: ANSI-C read and write functions


int sprintf(char *s, const char *format, ...);
int vsprintf(char *s, const char *format, va_list args);

int sscanf(const char *s, const char *format, ...);