diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-19 22:39:14 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-11-19 23:13:42 -0500 |
commit | e7e20fab1b2b90ea80e118959386017ed1d6f703 (patch) | |
tree | df435e8bc4a4d9069a365061454443ae9e33ded3 /apps/misc.h | |
parent | 8fe42c43c6c62a8f593ee337902f8919ed2152ad (diff) | |
download | rockbox-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.h | 1 |
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 | ||
124 | int split_string(char *str, const char needle, char *vector[], int vector_length); | 124 | int split_string(char *str, const char needle, char *vector[], int vector_length); |
125 | int open_pathfmt(int oflag, const char *pathfmt, ...); | ||
125 | int open_utf8(const char* pathname, int flags); | 126 | int open_utf8(const char* pathname, int flags); |
126 | int string_option(const char *option, const char *const oplist[], bool ignore_case); | 127 | int string_option(const char *option, const char *const oplist[], bool ignore_case); |
127 | 128 | ||