unrealircd- supernets unrealircd source & configuration |
git clone git://git.acid.vegas/unrealircd.git |
Log | Files | Refs | Archive | README | LICENSE |
ircsprintf.h (585B)
1 /* 2 * sprintf_irc.h 3 * 4 * $Id$ 5 */ 6 7 #ifndef IRCSPRINTF_H 8 #define IRCSPRINTF_H 9 #include <stdarg.h> 10 #include <stdio.h> 11 12 /* ugly hack GRR, for both attribute and FORMAT_STRING */ 13 #if !defined(__GNUC__) && !defined(__common_include__) 14 #define __attribute__(x) /* nothing */ 15 #endif 16 #ifndef FORMAT_STRING 17 # define FORMAT_STRING(p) p 18 #endif 19 20 extern char *ircvsnprintf(char *str, size_t size, const char *format, va_list) __attribute__((format(printf,3,0))); 21 extern char *ircsnprintf(char *str, size_t size, FORMAT_STRING(const char *format), ...) __attribute__((format(printf,3,4))); 22 23 #endif