#define PRAGMA_POINTER
void main()
{
TEXT *text_lines = txt_create(100, 0);
var line_number = 0;
str_cpy((text_lines->pstring)[line_number], "Hello world");
while(!key_esc)
{
draw_text((text_lines->pstring)[line_number], 10, 10, COLOR_WHITE);
// check if second string is empty ?
if(str_len((text_lines->pstring)[1]) <= 0)
{
draw_text("Empty string!", 10, 30, COLOR_WHITE);
}
wait(1);
}
}