while(1){ tmp=func();
if(tmp!=0x05) switch(tmp) { ... } else break; ...}...;))))
E-mail: info@telesys.ru