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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.