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

Need split function for C51

Hi..
I need a split function for Keil C51, as it is not available in the Keil uVision 2 library.
Bye.

Parents Reply Children
  • Hey guys, I've just discovered that the Internet has some information on it and I found a website called google that can help you find things.

    I did a search for strtok and got this:

    www.google.co.uk/codesearch

  • So, to summarize:

    You ask for a split, but totally forget that a split can be a split of files into smaller parts, a split of strings on separator tokens, a split of serial data into multiple channels, or to multiple listeners, ...

    Always, always be very explicit whenever you ask for things. We can never read your mind.

    Second: You want something - that exists in many incarnations on the net. But instead of looking for it, you cleverly suggests that we should either go out looking and post the results, or should spend time either writing new variants or cut and paste the variants we have already been using.

    Now, why do you so desperately want us to do your work?

    Memory consumption? If you are allowed to modify the original string, then you can settle for an array of pointers to the start addresses of the individual substrings - still stored in the original string.

    Or you can do an incremental solution, similar to strtok(). And yes, the manual for strtok() is available on the net. And yes, Google will know where a large number of copies of this manual can be found.

    Now, here is a suggestion for you:

    You spend time to locate (or write) three or four different solutions.

    Post your solutions here, and which one you selected. Also write a short note for each solution: Why you did/did not pick that one. What their individual merrits are and when you recommend/do not recommend them.

    After that, we can supply comments to your comments, i.e. point out further reasons for selecting a specific solution. Now, off you go.