add support for default values
This commit is contained in:
parent
c85722874d
commit
2eb6628ae4
7 changed files with 700 additions and 466 deletions
|
|
@ -94,3 +94,11 @@ int str_addf(struct str *v, const char* format, ...) {
|
|||
return str_vaddf(v, format, ap);
|
||||
}
|
||||
|
||||
char *strf(struct str *v, const char* format, ...) {
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
str_reset(v);
|
||||
str_vaddf(v, format, ap);
|
||||
return v->str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue