We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, i am new on arm. does any one have a string parser example for lpc2138 cpu.
Thanks Orko
"The current Keil ARM compiler & library does support strtok and I beleive it has been supported for some time."
As they are part of the standard 'C' library, it would be extremely surprising if they were not supported!!
As I noted earlier, even the C51 compiler has them!
When the OP said he couldn't find them, I very much suspect that he just didn't look (hard enough).
But, as Keil still haven't got the Realview manuals online yet, I can't check...
If your favorite string function does happen not to be supported, or happens not to be ANSI (that is, GNU or Unix libraries), you might look for source from the FreeBSD library:
www.freebsd.org/.../
"... you might look for source from the FreeBSD library"
And while you're there you might consider strsep() as a replacement for strtok() since it addresses strtok's problems alluded to by Per Westermark.