]> git.sur5r.net Git - cc65/blob - libsrc/common/_printf.h
Remove #pragmas to switch to the RODATA segment since the compiler will do
[cc65] / libsrc / common / _printf.h
1 /*
2  * _printf.h
3  *
4  * (C) Copyright 1998 Ullrich von Bassewitz (uz@ibb.schwaben.com)
5  *
6  */
7
8
9
10 #ifndef __PRINTF_H
11 #define __PRINTF_H
12
13
14
15 /* Forward */
16 struct outdesc;
17
18 /* Type of the function that is called to output data */
19 typedef void (*outfunc) (struct outdesc* desc, char* buf, unsigned count);
20
21
22
23 struct outdesc {
24     outfunc     fout;           /* Routine used to output data */
25     int         ccount;         /* Character counter */
26     void*       ptr;            /* Data internal to print routine */
27     unsigned    uns;            /* Data internal to print routine */
28 };
29
30
31
32 /* Internal formatting routine */
33 int _printf (struct outdesc* d, char* format, va_list ap);
34
35
36
37 /* End of _printf.h */
38 #endif
39
40
41