On Sun, Oct 9, 2016 at 11:02 AM, Selva Nair <selva.n...@gmail.com> wrote:

> As per MSDN, strtok on Windows is thread-safe --- uses thread-local
> static for the internal state (though not reentrant). Anyone knows
> whether this is true even when mingw is used --- does it use strtok from
> Microsoft's run time or some internal implementation?
>

Well, I went ahead and tested it: indeed strtok is thread-safe on windows
(obviously not reentrant).

I guess it uses strtok in MS runtime, not a typical C library
implementation.
(Tested on Debian jessie with mingw-w64 version 4.9.1-19+14.3.)

Selva
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to