void str_copy_buf_trunc (char *, size_t, const char *, size_t);
void str_uppercase (char *);
void str_lowercase (char *);
+
+char *spprintf (char *dst, const char *format, ...);
\f
/* Fixed-length strings. */
struct fixed_string
void ds_vprintf (struct string *st, const char *, va_list);
void ds_printf (struct string *, const char *, ...)
PRINTF_FORMAT (2, 3);
+char *ds_append_uninit (struct string *st, size_t incr);
#if __GNUC__ > 1
extern inline void
}
#endif
-#define nsprintf sprintf
-#define nvsprintf vsprintf
-
-/* Formats FORMAT into DST, as with sprintf(), and returns the
- address of the terminating null written to DST. */
-static inline char *
-spprintf (char *dst, const char *format, ...)
-{
- va_list args;
- int count;
-
- va_start (args, format);
- count = nvsprintf (dst, format, args);
- va_end (args);
-
- return dst + count;
-}
-
-
-char * ds_append_uninit(struct string *st, size_t incr);
-
-
-
#endif /* str_h */