Article View: comp.std.c
Article #4860Re: mapping a C structure
From: Stephen Baynes
Date: Wed, 06 Mar 1996 09:44
Date: Wed, 06 Mar 1996 09:44
16 lines
1103 bytes
1103 bytes
Owen Townsend (owent@vanbc.wimsey.com) wrote: : Does anybody have a program to calculate byte displacements for all fields : within a C structure ? You ANSI standard C compiler should have offsetof defined in <stddef.h>. : I am assisting mainframe COBOL users to convert to Unix Micro Focus COBOL ANSI C does not require that the compiler handling of structures is in anyway compatible with any other compiler, cobol or otherwise. -- Stephen Baynes baynes@ukpsshp1.serigate.philips.nl Philips Semiconductors Ltd Southampton My views are my own. United Kingdom
Technical Details
Message-ID:
<DnuB2y.AwD@ukpsshp1.serigate.philips.nl>Path:
arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynesReferences:
<4hd0db$89l@wolfe.wimsey.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynes From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes) Subject: Re: mapping a C structure Sender: news@ukpsshp1.serigate.philips.nl (account for localnews) Message-ID: <DnuB2y.AwD@ukpsshp1.serigate.philips.nl> Date: Wed, 6 Mar 1996 09:44:58 GMT References: <4hd0db$89l@wolfe.wimsey.com> Organization: Philips Semiconductors, Southampton, UK X-Newsreader: TIN [version 1.2 PL2]