Re: strndup

Adrian Johnson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 07/10/16 04:00, John Emmas wrote:
> 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
> 

I've removed the use of strndup.

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.