--- Dinesh Kumar <[EMAIL PROTECTED]> wrote: > I want to know how can we implement a byte array or a > Variant data type in PalmC > my requirement is to write some data [int,string or > some array] in a byte array by using Same Function
You can use MemMove to copy the bytes from any object to another: MemMove( (void *)destinationP, (void *)sourceP, (Int32)sizeInBytes ); Example: Char source[5] = "ABCD"; UInt8 destination[4]; // write 4 Chars to destination MemMove((void *)&destination, (void *)&source, 4); __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
