Re: fwrite() misses writing a byte



On Wed, 03 Oct 2007 13:39:01 -0700, Keith Thompson wrote:

You should also decide whether you're using C or C++. Your use of
both ``Data.size()'' and ``Data[i]'' suggests that you're using
operator overloading, which C++ supports but C doesn't.
static unsigned char foo[1000];
static int bar(void) { return sizeof foo; }
struct { int (*size)(void); } baz = { &bar };
#define Data (__LINE__ % 3 ? baz : foo)
;-)

--
Army1987 (Replace "NOSPAM" with "email")
A hamburger is better than nothing.
Nothing is better than eternal happiness.
Therefore, a hamburger is better than eternal happiness.

.



Relevant Pages