[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mixed C/C++ bug - g++-3.2_3.2.1-0pre4 (unstable)



On Thu, Oct 24, 2002 at 03:08:42AM +0200, Federico 'Derfel' Stella wrote:
> > In C++, you should include <cstdio> rather than <stdio.h>.  Additionally,
> > mixing of stdio and iostream is not recommended, especially if you're going
> > to use them both on the same stream.
> This is not true if you call sync_whit_stdio() on the stream before any
> operation on it.

This is on by default anyway; you only need to call sync_with_stdio()
to turn it off.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK



Reply to: