if you know its 0-terminated, you can do a StrCopy, add a "\0" and another StrCopy + "\0" from StrLen()+1 as well. The thing about MemSet is if you have a chunk of memory (getting from MemLock or whatever) and you don't know if it is initialized with "\0" at the beginning, you better do a MemSet with 0x00 to ensure you will have a 0-terminated string, regardless what you do.
Henk
Michel.P wrote:
So I looked at the code in detail and yes, they were terminated. Since I didn't know about MemMove() there was still no way I could do the packing. But that has been solved now. (I also came across a post where A.Ardiri mentioned something about MemSet() and null termination - anyone knows what that's about?)Thanks for that tip though Matt :-) __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus � Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
-- ------------------------------------------------------------------------- [EMAIL PROTECTED] www.metaviewsoft.de <A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A> ------------------------------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
