KO Myung-Hun wrote: > > If it's the latter case (it leaves errno untouched), you need to add an > > 'errno = 0;' statement before the freopen call. > > > > I thought testing this. But it was wrong. Thanks for pointing this.
Thanks. The corrected code looks good. Bruno