Hi,
The reason that the ANSI functions don't compile is because most of the MSL
ANSI C/C++ library functions are not supported on the Palm OS at present. I
would suggest using the Palm OS API functions to do what you trying to do; I
_think_ there is an API function that does the equivalent of memchr although
I don't know the name off the top of my head.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, February 21, 2000 4:00 PM
Subject: Help compiling/linking mem.c
> Hello everyone,
>
> I'm new to using this forum and to working with the Palm OS, but I hope
> someone out there can help me.
>
> I'm using CodeWarrior R6 as my development platform and I'm trying to use
> the "memchr" function to search for a character in a buffer string. The
> prototype for memchr is found in string.h, but since this function is not
> available with the Palm OS library I've been trying to compile the
provided
> source code.
>
> I found the source in the msl/msl_c/msl_common/src directory, but when I
> try to compile it I get complaints that it can't open MacMemory.h. In
> fact, I can't find MacMemory.h anywhere in the Metrowerks directory.
>
> Am I missing something? I originally thought this would be a relatively
> painless exercise to use what is usually considered a standard C function.
>
> Any guidance toward a resolution of this "simple" problem would be
> appreciated.
>
> Thanks,
>
> Brad S.
>
> +----------------------------------------+
> | Brad, Renee, Jordan, & Connor Skillman |
> | [EMAIL PROTECTED] |
> +----------------------------------------+
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html