Date: Sun, 7 Nov 1999 17:24:47 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Adam Schrotenboer cc: djgpp AT delorie DOT com Subject: Re: Pointers passed to functions In-Reply-To: <3823A099.188880C8@lycosmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 5 Nov 1999, Adam Schrotenboer wrote: > newimage = oldimage; // Please, somebody out there with more experience, tell me > this can or cannot be done. > > You might have to copy using memcpy, or similar. (Input from more experienced > programmers welcome. Eli?????) You *can* assign struct's, and the compiler will produce the code that does the equivalent of a memcpy. This is a requirement of ANSI C.