> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Hmmm... my experience is that if I didn't put a '\0' at the
> end, StrCopy would cause a few "memory allocation" error messages to pop
up.
> My initial guess was that during runtime, StrCopy(a, b) couldn't find the
> proper end of b and kept reading past my string until it finds a '\0'
But when you put a literal string "in quotes like this" in your C/C++ code,
the compiler puts the '\0' byte at the end automatically. Can you
demonstrate that this is _not_ happening?
> Is that how StrCopy() works? I've sent in the agreement for the release
> of the PalmOS sourcecode but do not have a reply yet.
Doesn't matter in this case. StrCopy is just a clone of the standard
strcpy. It just copies bytes up to (and including) the first '\0' byte.
> Well, I've tried using StrCopy() (like above) in the Memopad app
> tutorial, and it bombed POSE. Is it some CW6 setting that
> I've neglected to set/disable/modify ?
Anything is possible, since what you're describing is a very simple scenario
and shouldn't happen. But I suspect the answer is found in what you
_aren't_ describing. Can you post more context of your actual code?
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/