There are a lot of differences between the Unix <string.h> functions and the string
functions of the PalmOS. I have been told it is
bad practice to try to port this code directly due to processor limitations. The same
goes with the pseudo <stdio.h> functions.
Steve
Ben Combee wrote:
> I just found something that bugged me. The PalmOS String Manager function
> StrStr differs from the C standard in how it handles empty strings.
>
> PalmOS StrStr(string, "") returns NULL
> The ANSI C strstr(string, "") returns string
>
> I hope this difference is noted in future versions of the documentation.
> Right now, no empty string behavior is specified for StrStr.
>
> --
> 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/