🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1253

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

#1253
From: Larry Jones
Date: Thu, 03 Sep 1992 20:13
13 lines
970 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?

No.  ;-)
The details are left unspecified -- member-wise copy is all that's
required but bit-wise copy is acceptable and is undoubtedly the
most common implementation (with the possible exception of not
copying trailing padding).
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
Domain: lawrence.jones@sdrc.com               IBMMAIL: USSDR7DR at IBMMAIL
See if we can sell Mom and Dad into slavery for a star cruiser. -- Calvin
Technical Details
Message-ID: <2000@sdrc.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjones
References: <715547606snx@grendel.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjones
From: scjones@thor.sdrc.com (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: How is struct assignment defined (idle query)?
Message-ID: <2000@sdrc.COM>
Date: 3 Sep 92 20:13:58 GMT
References: <715547606snx@grendel.demon.co.uk>
Sender: news@sdrc.COM
Lines: 13