]>
git.saurik.com Git - apple/libc.git/blob - mach/fprintf_stderr.c
a2f70f7486c7f619c44eb7169b58051a4f390ec3
7 #include <mach/mach_init.h>
11 int (*vprintf_stderr_func
)(const char *format
, va_list ap
);
14 /* This function allows the writing of a mach error message to an
15 * application-controllable output method, the default being to
16 * use printf if no other method is specified by the application.
18 * To override, set the global (static) function pointer vprintf_stderr to
19 * a function which takes the same parameters as vprintf.
22 int fprintf_stderr(const char *format
, ...)
27 va_start(args
, format
);
28 if (vprintf_stderr_func
== NULL
)
29 retval
= vprintf(format
, args
);
31 retval
= (*vprintf_stderr_func
)(format
, args
);