If I remember my C lessons correctly, const Char * Text means that what the pointer is pointing to is constant, not that the pointer itself is constant. (You would use Char * const Text, to make the pointer constant). Therefore, all you need to do is write Text += 4;
If you would need to actually erase the data, then you would have to cast it to a non-const pointer, and that will depend if you are using C or C++ LionScribe "Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I have a simple question which I cannot find a simple > > answer. > > > > I have: > > const Char *Text = "Two words"; > > > > How can I delete the "Two" in this char so that it > > remains only "words" in the char *Text ? > > > > This may sound silly but I have spend 2 hours on it. > > Char *pText = Text; > pText += 4; > > use a seperate pointer. > > --- > Aaron Ardiri > PalmOS Certified Developer > [EMAIL PROTECTED] > http://www.mobilewizardry.com/members/aaron_ardiri.php > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
