Re: fwrite() misses writing a byte
- From: Army1987 <army1987@xxxxxxxxx>
- Date: Fri, 05 Oct 2007 20:57:04 +0200
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 ofstatic unsigned char foo[1000];
both ``Data.size()'' and ``Data[i]'' suggests that you're using
operator overloading, which C++ supports but C doesn't.
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.
.
- Follow-Ups:
- Re: fwrite() misses writing a byte
- From: Keith Thompson
- Re: fwrite() misses writing a byte
- References:
- fwrite() misses writing a byte
- From: hemant . gaur
- Re: fwrite() misses writing a byte
- From: Keith Thompson
- fwrite() misses writing a byte
- Prev by Date: Re: Help: About Steffensen's Acceleration Method
- Next by Date: Re: Accessing a disk
- Previous by thread: Re: fwrite() misses writing a byte
- Next by thread: Re: fwrite() misses writing a byte
- Index(es):
Relevant Pages
|