Re: pointer conversion
- From: Charlton Wilbur <cwilbur@xxxxxxxxxxxxxx>
- Date: 31 Aug 2007 12:24:43 -0400
"M" == Malcolm McLean <regniztar@xxxxxxxxxxxxxx> writes:
M> You will be OK. char is always 1 byte. So casting an arbitrary
M> pointer to a char *, adding an exact multiple of the size of
M> the original type, and casting back is guaranteed to preserve
M> alignment.
I am not so sure about that; would you care to cite C&V, please, if
you claim that it's guaranteed by the standard?
Charlton
--
Charlton Wilbur
cwilbur@xxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: pointer conversion
- From: Eric Sosman
- Re: pointer conversion
- From: Malcolm McLean
- Re: pointer conversion
- References:
- pointer conversion
- From: junky_fellow@xxxxxxxxxxx
- Re: pointer conversion
- From: Malcolm McLean
- pointer conversion
- Prev by Date: Re: C Offsetof
- Next by Date: Re: size_t problems
- Previous by thread: Re: pointer conversion
- Next by thread: Re: pointer conversion
- Index(es):
Relevant Pages
|