Automatic commit at Wed Jul 25 15:50:05 WST 2012
[matches/honours.git] / research / TCS / apparatus / source_code / printf.h
1 #ifndef _PRINTF_H\r
2 #define _PRINTF_H\r
3 \r
4 /*\r
5  * @filename printf.h\r
6  * @author Sam Moore\r
7  * @purpose The WinAVR sprintf function is fucking broken.\r
8  *                      So I have to make my own. Dammit\r
9  *\r
10  */\r
11 \r
12 #include <stdarg.h>\r
13 \r
14 #include "main.h"\r
15 \r
16 extern int vsprintf(char * str, const char * format, va_list args);\r
17 extern int sprintf(char * str, const char * format, ...);\r
18 extern int uint2str(char * str, uint integer);\r
19 extern int luint2str(char * str, uint32 integer);\r
20 extern int int2str(char * str, int integer);\r
21 extern int float2str(char * str, float flt);\r
22 extern int str2str(char * str1, char * str2);\r
23 \r
24 \r
25 \r
26 #endif //_PRINTF_H\r

UCC git Repository :: git.ucc.asn.au