Program Listing for File printf.h
↰ Return to documentation for file (rcsw/stdio/printf.h
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include <stdarg.h>
#include "rcsw/common/common.h"
/*******************************************************************************
* API Functions
******************************************************************************/
BEGIN_C_DECLS
RCSW_API int stdio_printf(const char* format, ...) RCSW_ATTR_PRINTF(1, 2);
RCSW_API int stdio_vprintf(const char* format, va_list arg) RCSW_ATTR_PRINTF(1, 0);
RCSW_API int stdio_sprintf(char* s, const char* format, ...) RCSW_ATTR_PRINTF(2, 3);
RCSW_API int stdio_vsprintf(char* s,
const char* format,
va_list arg) RCSW_ATTR_PRINTF(2, 0);
RCSW_API int stdio_snprintf(char* s,
size_t n,
const char* format,
...) RCSW_ATTR_PRINTF(3, 4);
RCSW_API int stdio_vsnprintf(char* s,
size_t count,
const char* format,
va_list arg) RCSW_ATTR_PRINTF(3, 0);
RCSW_API int stdio_usfprintf(void (*out)(int c, void* extra_arg),
void* extra_arg,
const char* format,
...) RCSW_ATTR_PRINTF(3, 4);
RCSW_API int stdio_vusfprintf(void (*out)(int c, void* extra_arg),
void* extra_arg,
const char* format,
va_list arg) RCSW_ATTR_PRINTF(3, 0);
END_C_DECLS