Re: Copy a Structure
- From: "Pravin Prabhu" <PravinPrabhu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 02:50:05 -0700
Thanks Jochen,
var1=*var2 will copy the contents of structure pointed
to by var2 into var1. One more thing I wanted to ask was how do I copy the
contents of the structure var1 into the structure pointed to by var2?
var2=&var1 will make var2 point to the var1 struture.
thanks again,
"Jochen Kalmbach [MVP]" wrote:
> Hi Pravin!
>
> > in C, How do I copy a contents of a Structure pointer to a Structure
> > Variable. e.g
> > struct A var1;
> > struct A *Var2;
>
> var1 = *Var2;
>
> --
> Greetings
> Jochen
>
> My blog about Win32 and .NET
> http://blog.kalmbachnet.de/
>
.
- Follow-Ups:
- Re: Copy a Structure
- From: Hendrik Schober
- Re: Copy a Structure
- References:
- Copy a Structure
- From: Pravin Prabhu
- Re: Copy a Structure
- From: Jochen Kalmbach [MVP]
- Copy a Structure
- Prev by Date: compiler errors
- Next by Date: Re: Copy a Structure
- Previous by thread: Re: Copy a Structure
- Next by thread: Re: Copy a Structure
- Index(es):
Relevant Pages
|