How do I go about allocating space for them?
"Richard Hartman" <[EMAIL PROTECTED]> wrote in message
news:20769@palm-dev-forum...
>
> You didn't answer the other question. Ok, so "theDate" and "theTime"
> are CharPtrs ... but did you allocate any space for them?
>
> --
> -Richard M. Hartman
> [EMAIL PROTECTED]
>
> 186,000 mi/sec: not just a good idea, it's the LAW!
>
>
> Zach Austin wrote in message <20741@palm-dev-forum>...
> >
> >//convert date to string
> >DateToAscii(DateTime->month, DateTime->day, DateTime->year,
> >dfMDYWithSlashes, theDate);
> >
> > /convert time to string
> > TimeToAscii(DateTime->hour, DateTime->minute, tfColonAMPM, theTime);
> >
> >DateTime is a DateTimeType ptr, theDate and theTime are char ptr's.
> >Any suggestions?
> >
> ><[EMAIL PROTECTED]> wrote in message news:20685@palm-dev-forum...
> >>
> >> How are you calling DateToAscii and TimeToAscii?
> >> Did you pass assign space to the string when you called the two
> >> functions?
> >>
> >> Zach Austin wrote:
> >> >
> >> > Does anyone know what could be causing a bus error in BOTH calls to
> >> > DateToAscii and TimeToAscii? Specifically, I get:
> >> > Bus error exception at 0x10c42a54 (StrNCopyWithNull) Thanks for any
> >help.
> >> >
> >> > --Zach
> >>
> >>
> >
> >
> >
> >
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/