|
From: | Adam Fedor |
Subject: | Re: last minute gnuste-base change |
Date: | Mon, 17 Mar 2003 10:36:52 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905 |
Richard Frith-Macdonald wrote:
Perhaps something like this? If that doesn't work then I guess vsprintf() is broken.#include <stdarg.h> static int func(const char *fmt, ...) { va_list ap; char buf[128]; int result; va_start(ap, fmt); result = vsprintf(buf, fmt, ap); va_end(ap); return result; } int main() { if (func("1234", 0) == 4) ....
Yes. we really should do it the right way :-)
[Prev in Thread] | Current Thread | [Next in Thread] |