]> jfr.im git - solanum.git/blobdiff - libratbox/include/rb_snprintf.h
Copied libratbox and related stuff from shadowircd upstream.
[solanum.git] / libratbox / include / rb_snprintf.h
index c12dd78ec97c45779c8307ab82890e1c9e748685..b9979b0967dfb8d0ec4b57408b3d51f5329bba3e 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: rb_snprintf.h 24324 2007-08-31 22:05:45Z androsyn $
+ *  $Id: rb_snprintf.h 26092 2008-09-19 15:13:52Z androsyn $
  */
 
 #ifndef RB_LIB_H
-# error "Do not use snprintf.h directly"                                   
+# error "Do not use snprintf.h directly"
 #endif
 
 #ifndef SPRINTF_IRC
  * rb_sprintf - optimized sprintf
  */
 #ifdef __GNUC__
-int rb_sprintf(char *str, const char *fmt, ...) __attribute((format(printf, 2, 3)));
-int rb_snprintf(char *str, const size_t size, const char *, ...) __attribute__ ((format(printf, 3, 4)));
-int rb_sprintf_append(char *str, const char *format, ...) __attribute((format(printf, 2, 3)));
-int rb_snprintf_append(char *str, size_t len, const char *format, ...) __attribute__ ((format(printf, 3, 4)));
+int
+rb_sprintf(char *str, const char *fmt, ...)
+__attribute((format(printf, 2, 3)));
+     int rb_snprintf(char *str, const size_t size, const char *, ...)
+       __attribute__ ((format(printf, 3, 4)));
+     int rb_sprintf_append(char *str, const char *format, ...) __attribute((format(printf, 2, 3)));
+     int rb_snprintf_append(char *str, size_t len, const char *format, ...)
+       __attribute__ ((format(printf, 3, 4)));
 #else
 int rb_sprintf(char *str, const char *format, ...);
 int rb_snprintf(char *str, const size_t size, const char *, ...);