On Mon, May 28, 2012 at 11:04:54AM +0200, Hans de Goede wrote: > Hi, > > On 05/24/2012 04:40 PM, Uri Lublin wrote: > >mingw imlpements neigther strtok_r nor strtok_s. > > > >So here is a simple implementation of strtok_r (for windows). > >It assumes the delimiter is a single character, which is > >good enough for usbredirfilter. > > If we're going to do this I would prefer to do a full > implementation, without the delimiter is a single char > limit. I know this is not important right now, but we > might start depending on multi-char delimiters in the > future and then this will come back to bite us. Other projects with the same issue seem to be reusing glibc's code http://www.spinics.net/lists/git/msg137794.html http://code.google.com/p/udptunnel/source/browse/trunk/helpers/strtok_r.c?r=18 Christophe
Attachment:
pgpuqDifYW2FB.pgp
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel