Re: Cloning structs

From: Richard Glover (magik@thegrid.net)
Date: 03/27/99


memcpy()
memmove()

These can copy or move parts of the memory to another, which structs with
values are easily copyable (copiable?).

Rick

NOTE: Thanks for the long message warning.  I only read the first paragraph
and am responding to that.

-----Original Message-----
From: Patrick Dughi <dughi@imaxx.net>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Saturday, March 27, 1999 2:36 PM
Subject:   Cloning structs


>(Note: Rather long, and ends with a request for technical info - may not
>be terribly interesting.)
>
>        In truth, this is more about programming in general than directly
>applying to circle, but it's something that I thought about a great deal,
>and would be terribly helpful for building, as well as a myraid of other
>neat things..
>
>        Basically, I want to clone a struct.  Say I want to make an exact
>copy of something to edit.  Currently one would have to make a seperate
>function for each structure type; they'd alloc the space, and copy
>relevant variables, creating each new string/struct within as they go,
>eventually making it all...


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST