Copy a Structure

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi ,
in C, How do I copy a contents of a Structure pointer to a Structure
Variable. e.g
struct A var1;
struct A *Var2;

I want to copy contents of Structure pointed to by Var2 to a Structure var1.
Is there any standard library function to do the same?

Thanks and Regards,
.



Relevant Pages

  • Re: PASSING VARIABLES...
    ... input the values for var1 and var2: ... So once the user fills in the form and hits submit, ... Prev by Date: ...
    (php.general)
  • Re: Copy a Structure
    ... to by var2 into var1. ... How do I copy a contents of a Structure pointer to a Structure ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Attribute Definitions and other questions
    ... > Let's say I have a tagged type T. ... > var1: T; ... > var2: T; ... Prev by Date: ...
    (comp.lang.ada)
  • Re: [PHP] string as file
    ... This is an example of $var1 and $var2. ... I think that neither you nor Greg understands what I'm looking for. ... Use regular expressions or straight string replacements - that's the best way to implement mail-merge type behaviour. ...
    (php.general)
  • Re: Newbie Question
    ... but I am not all that familiar with most of cobol. ... var2 pic 9 ... MOVE VAR2 TO VAR1 is executed, what is actually stored in var1. ... loop through it digit by digit, ...
    (comp.lang.cobol)