summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-08-03 15:31:39 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-03 15:31:39 -0300
commit1c59139687546db411fe6957cbdb2122666a0515 (patch)
tree484b53c2de440e90ce890b05134a2a6059ccc342 /misc.h
parent7fb60e31ab104a05dcf3840c7580c630ff4636ee (diff)
misc: Add `vformat_len_copy()`
This works the same as `vformat_len()`, except that it copies `args` into a temporary `va_list`. This can be useful when you're already using a `va_list`, and thus need to copy the list already.
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 9110197..eb839de 100644
--- a/misc.h
+++ b/misc.h
@@ -18,6 +18,7 @@ extern char *find_alpha(const char *str);
extern char *create_num_str(const char *str, int num);
extern int is_empty(const char *str);
extern char *skip_whitespace(const char *str);
+extern int vformat_len_copy(const char *fmt, va_list args);
extern int vformat_len(const char *fmt, va_list args);
extern int format_len(const char *fmt, ...);
extern int is_dir(const char *path);