A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/017296.html below:

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.124,2.125

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.124,2.125Greg Stein gstein@lyra.org
Sat, 25 Aug 2001 23:17:35 -0700
On Fri, Aug 24, 2001 at 11:32:08AM -0700, Barry Warsaw wrote:
>...
> + PyObject *
> + PyString_FromFormat(const char *format, ...) 
> + {
> + 	va_list vargs;
> + 
> + #ifdef HAVE_STDARG_PROTOTYPES
> + 	va_start(vargs, format);
> + #else
> + 	va_start(vargs);
> + #endif
> + 	return PyString_FromFormatV(format, vargs);
> + }

For safety/propriety, you should call va_end() on the vargs variable.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4