Thanks, I'm working with it now. However I have a question. Why I should write a new API and not improve strtok?
Sergio. El 31/12/2013 13:07, "Martin Decky" <[email protected]> escribió: > Hi Sergio, > > Hello there, I was planning on taking bug 357 (Get rid of strtok() and >> strtok_r()) but wanted to know how much difficult it would be. >> > > I would guess that the difficulty of this ticket is medium. It is not a > trivial find-replace kind of ticket, but it is also not rocket science. If > you are willing to learn something new then it is ideal. > > What you need to do is to design a reasonable API for string tokenization > (it always helpful to get inspiration from as many sources as possible, but > also keeping the result somehow consistent with the rest of our string API > [1]). > > Then you need to implement the functionality, keeping the important > features on mind (UTF-8 compliance, reentrancy, etc.). And finally you need > to replace the usage of strtok() and strtok_r() with the new API. Luckily > it is currently used only in a few places. > > [1] http://trac.helenos.org/wiki/StringAPI > > > M.D. > > _______________________________________________ > HelenOS-devel mailing list > [email protected] > http://lists.modry.cz/listinfo/helenos-devel >
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
