sources/mystring.h

changeset 189
248d0b85cbda
parent 183
9b6a0daedfc0
child 190
90bf9049e5eb
--- a/sources/mystring.h	Wed Jan 27 19:01:37 2021 +0200
+++ b/sources/mystring.h	Wed Jan 27 19:27:23 2021 +0200
@@ -46,7 +46,7 @@
 std::string mid(const std::string& str, int rangeBegin, int rangeEnd);
 std::string right(const std::string& str, int length);
 std::string vsprintf(const char* formatString, va_list args);
-std::string __cdecl sprintf(const char* formatString, ...);
+std::string __cdecl sprintf(const char* formatString, ...) GNUATTRIBUTE((format(printf, 1, 2)));
 std::string remove_range(const std::string& string, int start, int end);
 void replace_all(std::string& str, const char* text, const char* replacement);
 bool starts_with(const std::string& str, const std::string& other);

mercurial