diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:47:14 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:47:14 -0500 |
| commit | 5d2d54ae0ebad9b7e2314735ba89b8e09b4ab147 (patch) | |
| tree | 4cebfd72fd0d04d16c761663c999a2a6333319ad /util.h | |
| parent | 605eb45626a0076b748a23f77a1899fc0e5b631a (diff) | |
Tweak cord formatting
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ char *heap_strn(const char *str, size_t len); char *heap_str(const char *str); char *heap_strf(const char *fmt, ...); -CORD CORD_asprintf(const char *fmt, ...); +CORD CORD_asprintf(CORD fmt, ...); #define CORD_appendf(cord, fmt, ...) CORD_sprintf(cord, "%r" fmt, *(cord) __VA_OPT__(,) __VA_ARGS__) #define asprintfa(...) ({ char *_buf = alloca(snprintf(0, 0, __VA_ARGS__)); sprintf(_buf, __VA_ARGS__); _buf; }) |
