I've actually found that as a general rule, the "Pascal array" form actually works out 
muc, much easier for many programming
situations, even if you do have to pass around a length.  For one thing, any function 
which normally operates on a string would also
work on an arbitrary string segment.

:)


Aaron Ardiri wrote:

> > Hello,
> >
> > is there anybody who knows why SysGetROMToken returns a buffer that is NOT
> > terminated by '\0'?
> > I would like to use this "string" to allow access to an application (and
> > therefore need something like
> > StrCompare) and - otherwise - display an allert containing this number. Both
> > functions need a terminated
> > string. Unfortunatelly, Char *serNum; StrNCopy(serNum, buffer,
> > serialNumberLength) doesn't work (why?)
> > Is there a work-around or should I read the Reference once again?
>
>   yeah.. read the reference again :)
>
>   just plonk a '\0' on the end?
>
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/    <--- free games!
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to