5. String Input/Output
 
Instead of writing to the standard output, the formatted data can be written to or read from character    arrays.
 
int sprintf(char string [], char format[], arg1, arg2)
– The format specification is the same as printf.
– The output is written to string (does not check size).
– Returns the number of character written or negative value on error.
 
int sscanf(char str [], char format[], arg1, arg2)
– The format specification is the same as scanf;
– The input is read from str variable.
– Returns the number of items read or negative value on error.
 
 
 
 
이전페이지 / 6 / 다음페이지