diff options
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 79fc0effc..993ecbf7d 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1509,3 +1509,12 @@ QString getUUID() uuidString.replace("{", "").replace("}", ""); return uuidString; } + +char *intdup(int index) +{ + char tmpbuf[21]; + + snprintf(tmpbuf, sizeof(tmpbuf) - 2, "%d", index); + tmpbuf[20] = 0; + return strdup(tmpbuf); +} |