[netperf-talk] Building netperf and netserver on Windows

Cook, Jonathan jonathan.cook at nist.gov
Wed Mar 21 13:07:06 PDT 2012


Sure, that would work since strndup() is only used once.  The code I found online uses malloc() and memcpy().

-----Original Message-----
From: Rick Jones [mailto:rick.jones2 at hp.com] 
Sent: Wednesday, March 21, 2012 1:54 PM
To: Cook, Jonathan
Cc: netperf-talk at netperf.org
Subject: Re: [netperf-talk] Building netperf and netserver on Windows

On 03/21/2012 12:24 PM, Cook, Jonathan wrote:
> Unfortunately, strndup is not supported in the Windows DDK.  The code 
> for strndup is pretty short so maybe it could be included under a 
> #ifdef WIN32?

That or just use malloc()+strncpy() directly I suspect.


More information about the netperf-talk mailing list