At 23:25 24/12/2000 +0200, you wrote:
>hi,
>
>i know that it is destroied, but i return its value to the function that
>keeps it ok.
>and still i get only 4 chars of all the date string.
>
>why is that??????
>anyone... ???
Actually, reading your function properly you end up returning a pointer to
a pointer, ie char **
Ok, here's what you probably want:
void SomeFunctionThatNeedsDateString(void)
{
Char DateString[DateStringSize+1];
if(!SetAutoDate(DateString))
{
//oops, something went wrong...
}
}
Boolean SetAutoDate(char *DateString)
{
//try to get date string and put it into {memory@}DateString
//return true, if succeeded, or false otherwise
}
There are other ways of doing the same, but they are more complicated.
BTW, did you just leap straight into c programming for palm without other c
experience?
Ta,
Igor M-)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/