Skip to contentSkip to conversation

Copying nf_info

DISCUSSION Carl Morgan 2 participants 2 messages May 13, 2004 – May 14, 2004

lore
Share & tools
lore
#0 lore raw

Hello all,
I am writing a program that requires I copy nf_info from an entry to
another one. The general idea of the program is this:

struct some_struct {
                               struct nf_info* info;
                           };

struct some_struct temp1;
struct some_struct temp2;

and in effect I want temp2->info=temp1->info. Can someone please help.

Tex Morgan

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

#1 lore raw

temp2->info = temp1->info, we will only copy the ADDRESS(NOT THE CONTENTS) of struct nf_info in the temp1. Instead you can use memcpy function to do that.

regards
-prasanth

Quoted 18 lines · Carl Morgan

Hello all,
I am writing a program that requires I copy nf_info from an entry to
another one. The general idea of the program is this:

struct some_struct {
                                struct nf_info* info;
                            };

struct some_struct temp1;
struct some_struct temp2;

and in effect I want temp2->info=temp1->info. Can someone please help.

Tex Morgan

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

Signature · 1 line
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/