[cairo] strndup

John Emmas johne53 at tiscali.co.uk
Thu Oct 6 17:30:18 UTC 2016


I'm building cairo with MSVC.  I just updated from git master and 
noticed that some new source files got added, including 
'cairo-pdf-interchange.c'.  It contains a function called split_label() 
which returns like this:-

     if (i > 0)
        return strndup (label, i);

     return NULL;

AFAICT, MSVC doesn't seem to offer 'strndup()'.  Could something else be 
used instead?  Thanks,

John



More information about the cairo mailing list