blob: 18850d9cfd21779a01accd302df736e29bbbfd78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#define STRINGBUILDER_IMPLEMENTATION
#include "../../include/stringbuilder.h" /* refer to [c_headers](https://git.twistea.su/c_headers) */
#include <stdio.h>
int main(void) {
jac_sb sb = jac_sb_empty();
#define OUTPUT(str) jac_sb_append_buf(&sb, str)
#define INTEGER(i) jac_sb_snprintf(&sb, "%i", i); /* Note the semicolon */
# include "tmpl.c"
#undef OUTPUT
#undef INTEGER
printf("%s\n", sb.data);
jac_sb_free(sb);
return 727;
}
|