fheroes3/h3c_and_h3m_formats/Heroes3/hstring.bt
2014-06-21 14:50:18 +02:00

15 lines
No EOL
294 B
Text

typedef struct {
uint32 str_len;
if ( str_len > 0 )
char str[str_len];
}hstring <read=hstringRead>;
string hstringRead (hstring &str) {
string s;
if ( str.str_len > 0 )
SPrintf( s, "%s", str.str );
else
return "empty";
return s;
}