At 9:43 AM +0000 2/12/02, [EMAIL PROTECTED] wrote:
>Is there a MemCopy function in the OS memory manager ?
>else how am I supposed to copy structures, other than an element at a time,
>and without changing the source (I assume MemMove does)?

What's wrong with using the equals (=) sign?

struct Foo
{
        int f1;
        int f2;
};

int main(void)
{
        struct Foo myFoo1;
        struct Foo myFoo2;

        myFoo1.f1 = 1;
        myFoo2.f2 = 2;

        myFoo2 = myFoo1;

        return 0;
}

Performing an inline assignment can sometimes generate more code than 
manually calling MemMove, but that's up to the compiler 
implementation.

At 1:46 PM +0100 2/12/02, John Marshall wrote:
>[Please don't reply to random mailing lists when replying to your
>threads!  You've posted various parts of this one to tools-forum and
>emulator-forum, but really it belongs on palm-dev-forum.]

OK, I'll reply there. I saw oz's posting in comm-dev-forum and John's 
in tools-forum, but I'm sending this reply to palm-dev-forum.

-- Keith

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to