This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to tokenize a string?

Hello there,

I try to tokenize a string. "Normally" (which means on my normal PC) I use the strtok() function to tokenize my string. But Keil uV does not support this function in there stdlib.

Any suggestions how to tokenize a string into its values?

The string is of this format: "123 456 789 012"
I want to get four integers with the values "123", "456", "789" and "012". If a single space as delimiter causes problems, it will be now problem to replace it to a tab "\t" or to any other delimiter.

Thanks for any help and/or hints to solve my problem...

Alexander

0