[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bluetooth-dev] Connection Problems / PALM port
On Sat, 15 Jul 2000, Eugene Grayver wrote:
> P.S. The 'zero length array' trick used in most of the header structures
> (e.g. 'u8 data') is not valid ANSI C. I had to change it to 'u8 data'
> and use '&tx->data' instead of 'tx->data'.
The standard trick is to just write
or whatever of arbitrary >0 length
(and hope that the structure is not called "header" and someone uses
sizeof(header) for anything purposeful :)