| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 7 Nov 1999 17:24:47 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Pointers passed to functions |
| In-Reply-To: | <3823A099.188880C8@lycosmail.com> |
| Message-ID: | <Pine.SUN.3.91.991107172325.12805b-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |