From owner-freebsd-questions Mon Jul 23 21:25:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web10703.mail.yahoo.com (web10703.mail.yahoo.com [216.136.130.211]) by hub.freebsd.org (Postfix) with SMTP id C137237B403 for ; Mon, 23 Jul 2001 21:25:41 -0700 (PDT) (envelope-from bhatt_manas@yahoo.com) Message-ID: <20010724042541.8025.qmail@web10703.mail.yahoo.com> Received: from [203.200.52.16] by web10703.mail.yahoo.com; Mon, 23 Jul 2001 21:25:41 PDT Date: Mon, 23 Jul 2001 21:25:41 -0700 (PDT) From: Manas Bhatt Subject: how to find word boundaries in FreeBSD To: FreeBSD-Questions@FreeBSD.Org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all, This maybe of the mailing list but if someone can answer this question, please do reply. While determining sizeof variable in C using sizeof function, i found that the for structures it doesn't allocate just that amount of memory which is the sum of the memory required for individual structure members. It is always more than or equal to the sum of memory required for each of the individual member of the structure. Someone told me that it is because some variables like float, long tend to take only even memory locations. Thus this discrepancy. Can someone explain what is happening here. Also if one can guide me to tutorials, RTFM , it would be of great help. thanks manas __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message