Path: utzoo!mnetor!uunet!husc6!purdue!gatech!amdcad!tim From: tim@amdcad.AMD.COM (Tim Olson) Newsgroups: comp.lang.c Subject: Re: variable number of arguments Message-ID: <20471@amdcad.AMD.COM> Date: 20 Feb 88 03:50:43 GMT References: <1608@byzantium.UUCP> Reply-To: tim@amdcad.UUCP (Tim Olson) Organization: Advanced Micro Devices Lines: 13 Keywords: arguments In article <1608@byzantium.UUCP> richwill@byzantium.UUCP (Rich Williamson) writes: | I would like to pass the necessary parameters to sprintf but I | don't know how to declare the arguments to MyXText. I don't know | how to declare a variable number of arguments. Is it even possible? | The family of printf() functions seem to be able to receive variable | arguments, so it would seem to possible. Some C libraries supply the vprintf, vfprintf, and vsprintf routines. These use the varargs facility to print a variable number of parameters. -- Tim Olson Advanced Micro Devices (tim@amdcad.amd.com)