GadgetSeed  0.9.6
tprintf.h
[詳解]
1 /** @file
2  @brief 機能限定printf
3 
4  @date 2002.03.01
5  @author Takashi Shudo
6 */
7 
8 #ifndef TPRINTF_H
9 #define TPRINTF_H
10 
11 #include "console.h"
12 
13 #define UNUSED_VARIABLE(x) (void)(x)
14 
15 extern int tsprintf(char *str, const char *fmt, ...)__attribute__ ((format(printf, 2, 3)));
16 extern int tsnprintf(char *str, unsigned int size, const char *fmt, ...)__attribute__ ((format(printf, 3, 4)));
17 extern int tprintf(const char *fmt, ...)__attribute__ ((format(printf, 1, 2)));
18 extern int eprintf(const char *fmt, ...)__attribute__ ((format(printf, 1, 2)));
19 extern void xdump(unsigned char *data, unsigned int len);
20 extern void xadump(unsigned int addr, unsigned char *data, unsigned int len);
21 
22 #endif // TPRINTF_H
int tsprintf(char *str, const char *fmt,...)
簡易sprintf
Definition: tprintf.c:36
int eprintf(const char *fmt,...)
エラー出力用簡易printf
Definition: tprintf.c:104
int tprintf(const char *fmt,...)
簡易printf
Definition: tprintf.c:85
コンソールI/O
int tsnprintf(char *str, unsigned int size, const char *fmt,...)
簡易snprintf
Definition: tprintf.c:60