🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1252

Re: How is struct assignment defined (idle query)?

#1252
From: Karl Heuer
Date: Thu, 03 Sep 1992 20:45
9 lines
896 bytes
In article <715547606snx@grendel.demon.co.uk> jes@grendel.demon.co.uk (Jim Segrave) writes:
>Does ANSI say that structure assignment is done by member-wise copy or
>by bit-wise copying?

It's unspecified.  Either approach may be used by a conforming implementation;
a user cannot make any valid assumptions about the contents of "holes" after a
struct copy.

Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
Technical Details
Message-ID: <1992Sep03.204538.11357@ima.isc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!gumby!destroyer!ncar!ico!dirtydog.ima.isc.com!karl
References: <715547606snx@grendel.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!gumby!destroyer!ncar!ico!dirtydog.ima.isc.com!karl
From: karl@ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: How is struct assignment defined (idle query)?
Message-ID: <1992Sep03.204538.11357@ima.isc.com>
Date: 3 Sep 92 20:45:38 GMT
References: <715547606snx@grendel.demon.co.uk>
Sender: usenet@ima.isc.com (news)
Organization: Interactive Systems, Cambridge, MA 02138-5302
Lines: 9