XPRINTF_EXEC(3) BSD Library Functions Manual XPRINTF_EXEC(3)NAME
asxprintf_exec, dxprintf_exec, fxprintf_exec, sxprintf_exec,
xprintf_exec, vasxprintf_exec, vdxprintf_exec, vfxprintf_exec,
vsxprintf_exec, vxprintf_exec — execute-only extensible printf execution
SYNOPSIS
#include <printf.h>
int
asxprintf_exec(char ** restrict ret, printf_comp_t restrict pc, ...);
int
dxprintf_exec(int fd, printf_comp_t restrict pc, ...);
int
fxprintf_exec(FILE * restrict stream, printf_comp_t restrict pc, ...);
int
sxprintf_exec(char * restrict str, size_t size,
printf_comp_t restrict pc, ...);
int
xprintf_exec(printf_comp_t restrict pc, ...);
#include <stdarg.h>
int
vasxprintf_exec(char ** restrict ret, printf_comp_t restrict pc,
va_list ap);
int
vdxprintf_exec(int fd, printf_comp_t restrict pc, va_list ap);
int
vfxprintf_exec(FILE * restrict stream, printf_comp_t restrict pc,
va_list ap);
int
vsxprintf_exec(char * restrict str, size_t size,
printf_comp_t restrict pc, va_list ap);
int
vxprintf_exec(printf_comp_t restrict pc, va_list ap);
DESCRIPTION
These functions are execute-only, extensible printf (see xprintf(5))
variants, taking a printf_comp_t structure created by the format string
compilation routine new_printf_comp(3). All these variants behave like
their normal printf counterparts (see printf(3)) without ‘x’ and “_exec”
in the name (except sxprintf_exec() and vsxprintf_exec() behave like
snprintf() and vsnprintf(), respectively).
SEE ALSOprintf(3), xprintf_comp(3), xprintf(5)Darwin Aug 19, 2012 Darwin