Re: Cloning structs

From: George Greer (greerga@circlemud.org)
Date: 03/27/99


On Sat, 27 Mar 1999, Patrick Dughi wrote:

>        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...

a) Unions or
b) Look at GTK+ (http://www.gtk.org/) and how they do GtkWidget.

--
George Greer            | Mailing list archives
greerga@circlemud.org   | http://post.queensu.ca/~listserv/wwwarch/circle.html


     +------------------------------------------------------------+
     | 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