function win_choice(STRING* s1, STRING* s2, STRING* s3)
{
TEXT* Text1=NULL:
TEXT* Text2=NULL:
TEXT* Text3=NULL:
//
if(s1!=0)
{
Text1 = txt_create(1, 100);
str_cpy((Text1.pstring)[0], s1);
set(Text1, SHOW);
}
//
if(s2!=0)
{
Text2 = txt_create(1, 100);
str_cpy((Text2.pstring)[0], s2);
set(Text2, SHOW);
}
//
if(s3!=0)
{
Text3 = txt_create(1, 100);
str_cpy((Text3.pstring)[0], s3);
set(Text3, SHOW);
}
//
...
other stuff
...
//////////////////////////////////////////////
wait(1);
//
if(Text1)
{
if((Text1.pstring)[0]!=0)
{
str_remove((Text1.pstring)[0]);
}
ptr_remove(Text1);
}
\\
if(Text2)
{
if((Text2.pstring)[0]!=0)
{
str_remove((Text2.pstring)[0]);
}
ptr_remove(Text2);
}
\\
if(Text3)
{
if((Text3.pstring)[0]!=0)
{
str_remove((Text3.pstring)[0]);
}
ptr_remove(Text3);
}
\\
}