Initial commit
[rpi-open-firmware.git] / lib / xprintf.h
1 /*------------------------------------------------------------------------*/
2 /* Universal string handler for user console interface (C)ChaN, 2011 */
3 /*------------------------------------------------------------------------*/
4
5 #ifdef __arm__
6 #include <stdarg.h>
7 #else
8 #include "stdarg.h"
9 #endif
10
11
12 #ifndef _STRFUNC
13 #define _STRFUNC
14
15 #define _USE_XFUNC_OUT 1 /* 1: Use output functions */
16 #define _CR_CRLF 1 /* 1: Convert \n ==> \r\n in the output char */
17
18 void xputc (char c);
19 void xputs (const char* str);
20 void xfputs (void (*func)(unsigned char), const char* str);
21 void xprintf (const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));
22 void xsprintf (char* buff, const char* fmt, ...);
23 void xfprintf (void (*func)(unsigned char), const char* fmt, ...);
24 void put_dump (const void* buff, unsigned long addr, int len, int width);
25
26
27 void xvprintf (
28 const char* fmt, /* Pointer to the format string */
29 va_list arp /* Pointer to arguments */
30 );
31
32 #define DW_CHAR sizeof(char)
33 #define DW_SHORT sizeof(short)
34 #define DW_LONG sizeof(long)
35
36 #endif
This page took 0.074755 seconds and 5 git commands to generate.