Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!lunic!my!luth!d90-pan From: d90-pan@sm.luth.se (Per Andersson) Newsgroups: comp.lang.c Subject: varargs Keywords: varargs Message-ID: <1428@tau.sm.luth.se> Date: 6 Feb 91 22:12:16 GMT Organization: University of Lulea, Sweden Lines: 32 I have a big problem using the varargs library. What I want to do is to write a function that takes a variable number of arguments and simply passes them on to another function like this: a_func( va_alist ) va_dcl { ... b_func( va_alist ); ... }; With this definition I would be able to write something like: a_func( "Hello world!", 42, &buf, 0 ); wich would result in b_func being called whith the same arguments. Unfortunatley, this doesn't work to well. The only thing I want to do is to pass ALL arguments on to b_func. It should work like an indirect call to b_func. Please help me! By the way, I'm using a Sun 3-60 with SunOs V4. | Per Andersson | c/o Boman | Voice natl. 0920 - 164 47 | | University of Luleaa | Kungsgatan 16 | intl. +46 920 164 47 | | SWEDEN | S-951 32 Luleaa | Internet: d90-pan@sm.luth.se |