Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!hplabs!hpcc05!hpyhde4!hpycla!hpcuhc!hpcupt3!shankar From: shankar@hpcupt3.cup.hp.com (Shankar Unni) Newsgroups: comp.lang.c Subject: Re: finding offset of a member in C structures Message-ID: <45690007@hpcupt3.cup.hp.com> Date: 20 May 91 08:20:10 GMT References: <1276@unisql.UUCP> Organization: HP India Software Op., Bangalore Lines: 12 In comp.lang.c, pckim@unisql.UUCP (Pyung-Chul Kim) writes: > I have a question about finding offset of a member in a structure of C. > For example, in the following structure, `a_struct', Why don't you invest $25 or so in a *recent* C textbook (Kernighan and Ritchie's 2nd Edition book is an excellent choice)? You'll find your question answered there (look under the index for "offsetof"). ----- Shankar Unni E-Mail: HP India Software Operation, Bangalore Internet: shankar@india.hp.com Phone : +91-812-261254 x417 UUCP: ...!hplabs!hpda!shankar