#includeStaticString<32> str; str = "Hello, world!";
#includevoid printString(const char* str) { // ... } StaticString<8> message = "Hello!"; printString(message.c_str());
#includeStaticString is not part of the standard C++ library, so it needs to be included from a third-party library or implementation, such as the Arduino framework.StaticString<16> str1 = "Hello, "; StaticString<16> str2 = "world!"; str1 += str2;