cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] banning "unsafe" functions

From: Cédric Deltheil <cedric_at_moodstocks.com>
Date: Wed, 6 Mar 2013 19:24:38 +0100

Le 6 mars 2013 à 19:14, Patrick Monnerat a écrit :

> I would use:
>
> count = snprintf(NULL, 0, "myformat") + 1;
>
> to include nul-terminator...

Apparently this is C99 only: http://stackoverflow.com/a/5338499/1688185

Cédric

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-06