Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: Dereferencing type-punned pointer |
| Date | 2012-07-20 07:40 +0100 |
| Message-Id | <pan.2012.07.20.06.40.49.485000@nowhere.com> |
| Newsgroups | comp.lang.c |
| References | <ju7722$ttq$2@speranza.aioe.org> <0.63bb9847db4020784082.20120719015604BST.87fw8owouz.fsf@bsb.me.uk> |
| Organization | Zen Internet |
On Thu, 19 Jul 2012 01:56:03 +0100, Ben Bacarisse wrote: > length = ntohs(buffer.words[0]); > type = ntohs(buffer.words[1]); > > (The uintN_t types are standard C types from stdint.h.) Also, the type of ntohs() as specified by POSIX is: uint16_t ntohs(uint16_t);
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
Dereferencing type-punned pointer John May <nospam@nospam.com> - 2012-07-18 20:41 +0000
Re: Dereferencing type-punned pointer Keith Thompson <kst-u@mib.org> - 2012-07-18 14:14 -0700
Re: Dereferencing type-punned pointer Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-19 01:33 +0100
Re: Dereferencing type-punned pointer Keith Thompson <kst-u@mib.org> - 2012-07-18 14:17 -0700
Re: Dereferencing type-punned pointer Ike Naar <ike@sverige.freeshell.org> - 2012-07-19 06:16 +0000
Re: Dereferencing type-punned pointer Keith Thompson <kst-u@mib.org> - 2012-07-19 01:35 -0700
Re: Dereferencing type-punned pointer Ike Naar <ike@sdf.lonestar.org> - 2012-07-19 14:11 +0000
Re: Dereferencing type-punned pointer Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-19 01:56 +0100
Re: Dereferencing type-punned pointer Nobody <nobody@nowhere.com> - 2012-07-20 07:40 +0100
csiph-web