[PATCH 00/21] replace strtok with strtok_r

Stephen Hemminger stephen at networkplumber.org
Wed Nov 15 16:08:03 CET 2023


On Wed, 15 Nov 2023 12:27:37 +0100
Morten Brørup <mb at smartsharesystems.com> wrote:

> > > just a final follow up, i can see that we already have a rte_strerror
> > > here to do the replace with reentrant dance. it is probably good to
> > > follow the already established pattern for this and have a  
> > rte_strtok.
> > 
> > +1 for have rte_strtok which could cover different platform.  
> 
> +1 to rte_strtok doing the reentrant dance for us.
> 
> If we had such an rte_strtok(), we could also generally disallow the use of strtok().

Good idea, I like this.
Would be good to have a version on Windows as well.


More information about the dev mailing list