fheroes3/h3c_and_h3m_formats/Heroes3/hstring.bt

15 lines
294 B
Text
Raw Normal View History

2014-06-21 12:50:18 +00:00
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;
}