Try,
const char myfoostring[] = "Foo";
StrCopry( mystring, myfoostring );
This should place the "Foo" in the code segment in the
code segment instead of the global data section. This
is what works for me with the GCC compiler.
Brian
--- Phil Lachmann <[EMAIL PROTECTED]> wrote:
>
> I am writing a script plugin, and I need to respond
> to a launch code of
> scptLaunchCmdExecuteCmd. It seems that the way that
> I use the string
> functions accesses global data. Something as simple
> as the following gives
> my problems:
>
> StrCopy(mystring,"Foo");
>
> I assume that the string "Foo" is treated as a
> global by the compiler and
> allocated as such.
>
> How do I work around this, other than by assigning
> values character by
> character?
>
> Thanks,
> Phil.
>
>
>
>
>
>
_______________________________________________________
> Say Bye to Slow Internet!
> http://www.home.com/xinbox/signup.html
>
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/