]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/include/rb_snprintf.h
Fix a bug I caused. Whoops.
[irc/rqf/shadowircd.git] / libratbox / include / rb_snprintf.h
index c12dd78ec97c45779c8307ab82890e1c9e748685..d64a2b7fd92f0bfa52ba4e407b5ea2490f05180a 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 $
  */
 
 #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 *, ...);