diff options
author | James Maki <jmaki@multitech.com> | 2010-04-23 11:58:20 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-04-23 11:58:20 -0500 |
commit | 14fb44b17123b27e562379f51b75ee889982688d (patch) | |
tree | 3c2344f5c42396ab839638ee12f7c2f66a2656cb /src/xprintf.h | |
download | sms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.gz sms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.bz2 sms-utils-14fb44b17123b27e562379f51b75ee889982688d.zip |
initial commit
Diffstat (limited to 'src/xprintf.h')
-rw-r--r-- | src/xprintf.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/xprintf.h b/src/xprintf.h new file mode 100644 index 0000000..94342c6 --- /dev/null +++ b/src/xprintf.h @@ -0,0 +1,26 @@ +#ifndef __XPRINTF_H +#define __XPRINTF_H + +#include "config.h" +#include <printf.h> + +#define XPRINTF_INSPECT_SPEC 'J' +#define XPRINTF_BIN_SPEC 'K' + +#if HAVE_REGISTER_PRINTF_SPECIFIER +int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size); +#else +int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes); +#endif +int print_buffer_inspect(FILE *stream, const struct printf_info *info, const void *const *args); + +#if HAVE_REGISTER_PRINTF_SPECIFIER +int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size); +#else +int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes); +#endif +int print_buffer_bin(FILE *stream, const struct printf_info *info, const void *const *args); + +int xprintf_init(void); + +#endif /* ~__XPRINTF_H */ |