summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-19 22:39:14 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2022-11-19 23:13:42 -0500
commite7e20fab1b2b90ea80e118959386017ed1d6f703 (patch)
treedf435e8bc4a4d9069a365061454443ae9e33ded3 /apps/misc.h
parent8fe42c43c6c62a8f593ee337902f8919ed2152ad (diff)
downloadrockbox-e7e20fab1b2b90ea80e118959386017ed1d6f703.tar.gz
rockbox-e7e20fab1b2b90ea80e118959386017ed1d6f703.zip
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
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h1
1 files changed, 1 insertions, 0 deletions
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);
122#define BOM_UTF_16_SIZE 2 122#define BOM_UTF_16_SIZE 2
123 123
124int split_string(char *str, const char needle, char *vector[], int vector_length); 124int split_string(char *str, const char needle, char *vector[], int vector_length);
125int open_pathfmt(int oflag, const char *pathfmt, ...);
125int open_utf8(const char* pathname, int flags); 126int open_utf8(const char* pathname, int flags);
126int string_option(const char *option, const char *const oplist[], bool ignore_case); 127int string_option(const char *option, const char *const oplist[], bool ignore_case);
127 128