diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-04 19:44:25 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-04 19:44:25 +0200 |
| commit | 374491ee63807147a8333ee415428303f99aa466 (patch) | |
| tree | 6d077d095a65559d25e6584ff343aab906d9b0f7 /src/helpers/MiscFunctions.cpp | |
| parent | d15cda7e4141eb73838cf0e5452c24d427028273 (diff) | |
progress
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 9974ab46..ceb457c4 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -42,3 +42,16 @@ void wlr_signal_emit_safe(struct wl_signal *signal, void *data) { wl_list_remove(&cursor.link); wl_list_remove(&end.link); } + +std::string getFormat(const char *fmt, ...) { + char buf[2048] = ""; + + va_list args; + va_start(args, fmt); + + vsprintf(buf, fmt, args); + + va_end(args); + + return std::string(buf); +}
\ No newline at end of file |
