Se pare ca am rezolvat. Cand read intoarce 0 (adica EOF) ma opresc din citit de la STDIN si imi vad de treaba :D Mi-a luat mult sa ma obisnuiesc cu ideea ca si STDIN are un EOF :) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080827/de44c67f/attachment.html