Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!sullivan From: sullivan@june.cs.washington.edu (Kevin Sullivan) Newsgroups: comp.lang.c++ Subject: c++ stdarg question Keywords: stdarg varagrs C++ Message-ID: <8725@june.cs.washington.edu> Date: 14 Jul 89 18:32:10 GMT Organization: U of Washington, Computer Science, Seattle Lines: 21 Here's what I'm doing: initializing an `ap' then passing it to a procedure that takes a va_list as a parameter (getVAList) and pulls values off the stack based on it. Is this allright, or is it incorrect usage? someProc(int lastNamedParameter, ...) { va_list ap; va_start(ap,lastNamedParameter); getVAList(ap); va_end(ap); } void getVAList(va_list ap) { ... calls to va_arg(ap,...) ... } Thanks, Kevin Sullivan U Washington