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
