Add sds function that can be called with va_list

This commit is contained in:
Pieter Noordhuis
2010-09-02 19:35:07 +02:00
parent 36c19d03e0
commit 60361e5aac
2 changed files with 15 additions and 6 deletions

View File

@ -32,6 +32,7 @@
#define __SDS_H
#include <sys/types.h>
#include <stdarg.h>
typedef char *sds;
@ -53,6 +54,7 @@ sds sdscat(sds s, char *t);
sds sdscpylen(sds s, char *t, size_t len);
sds sdscpy(sds s, char *t);
sds sdscatvprintf(sds s, const char *fmt, va_list ap);
#ifdef __GNUC__
sds sdscatprintf(sds s, const char *fmt, ...)
__attribute__((format(printf, 2, 3)));