2000-05-28 13:40:48 +00:00
|
|
|
/*
|
|
|
|
* _printf.h
|
|
|
|
*
|
|
|
|
* (C) Copyright 1998 Ullrich von Bassewitz (uz@ibb.schwaben.com)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __PRINTF_H
|
|
|
|
#define __PRINTF_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Forward */
|
|
|
|
struct outdesc;
|
|
|
|
|
|
|
|
/* Type of the function that is called to output data */
|
2000-08-14 22:16:40 +00:00
|
|
|
typedef void (*outfunc) (struct outdesc* desc, const char* buf, unsigned count);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct outdesc {
|
|
|
|
outfunc fout; /* Routine used to output data */
|
|
|
|
int ccount; /* Character counter */
|
|
|
|
void* ptr; /* Data internal to print routine */
|
|
|
|
unsigned uns; /* Data internal to print routine */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Internal formatting routine */
|
2000-08-14 21:50:56 +00:00
|
|
|
int _printf (struct outdesc* d, const char* format, va_list ap);
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* End of _printf.h */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|