12 Sep
2009
12 Sep
'09
8:32 a.m.
Am Samstag, 12. September 2009 schrieb Agustín K-ballo Bergé:
Sven Heithecker escribió:
Hi all,
the code below using boost::iostream produces unwanted surplus output:
streamsize write(const char *s, streamsize n) { cout << "Write: " << s; return(n); }
My guess is you should only read up to n chars. Try copying n chars from s, and outputing those.
Hi, brilliant idea - works like a charm ! Thanx for help. Regards, Sven -- Sven Heithecker GPG Fingerprint: 52F7 06C2 BF51 96CE DFF7 CC89 1A6B DFD5 BEC2 02A6