Re: void * pointer convert problem.
- From: Christopher Benson-Manica <ataru@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 20:58:34 +0000 (UTC)
tmp123 <tmp123@xxxxxxxxx> wrote:
> b) Have structures different sizes? Two workarounds (assertion:
> sizeof(char)==1):
sizeof( char ) is 1, always, by definition.
> b2) Do not use a local, and get the size each time:
> bPtr=((char *)bPtr)+(hbt == PROC_TIMING_BIN)?
> sizeof(hPtr->ptBin[0]):
> sizeof(hPtr->etBin[0]) );
This strikes me as rather grotesque abuse of the ?= operator.
Additionally:
It is proper Usenet etiquette to include the relevant portions of the text
you are replying to. To do this using Google groups, please follow the
instructions below, penned by Keith Thompson:
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
.
- References:
- void * pointer convert problem.
- From: Eric J.Hu
- Re: void * pointer convert problem.
- From: Christopher Benson-Manica
- Re: void * pointer convert problem.
- From: Eric J.Hu
- Re: void * pointer convert problem.
- From: tmp123
- Re: void * pointer convert problem.
- From: Christopher Benson-Manica
- Re: void * pointer convert problem.
- From: nelu
- Re: void * pointer convert problem.
- From: Christopher Benson-Manica
- Re: void * pointer convert problem.
- From: tmp123
- void * pointer convert problem.
- Prev by Date: Re: How to stop reading a file?
- Next by Date: Re: exponentiation operator (lack of)
- Previous by thread: Re: void * pointer convert problem.
- Next by thread: Re: void * pointer convert problem.
- Index(es):
Relevant Pages
|