From e7e20fab1b2b90ea80e118959386017ed1d6f703 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 19 Nov 2022 22:39:14 -0500 Subject: create function open_pathfmt() to allow printf formatting on open() save some space by allowing printf formatting directly rather than having a buffer and using sprintf Change-Id: I049c8f898fb4a68a26ad0f0646250c242647ba12 --- apps/misc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/misc.h') diff --git a/apps/misc.h b/apps/misc.h index ed40de3e1f..50191f0e95 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -122,6 +122,7 @@ extern int show_logo(void); #define BOM_UTF_16_SIZE 2 int split_string(char *str, const char needle, char *vector[], int vector_length); +int open_pathfmt(int oflag, const char *pathfmt, ...); int open_utf8(const char* pathname, int flags); int string_option(const char *option, const char *const oplist[], bool ignore_case); -- cgit v1.2.3