APPENDIX D

image

Input and Output Format Specifications

Output Format Specifications

There are 16 standard library functions for formatted output that have the following prototypes:

int printf(const char* restrict format, ...);int printf_s(const char* restrict format, ...);int sprintf(char* restrict str, const char* restrict format,...);int sprintf_s(char* restrict str, rsize_t n, const char* restrict format, ...);int snprintf(char * restrict, size_t, const char * restrict, ...);int snprintf_s(char* restrict str, rsize_t n, const char* restrict format, ...);int fprintf(FILE* restrict stream, const char* restrict format, ...);int fprintf_s(FILE* restrict ...

Get Beginning C, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.