Online HelpPC 2.10      Quick Reference Utility     Copyright 1991 David Jurgens
 
                     Example of variable arguments in C                     
                                                                                         void myprintf( char *format, ... )                                                  {                                                                                va_list argptr;                                                                                                                                                   va_start ( argptr, format );                                                     vsprintf ( text, format, argptr );                                               va_end ( argptr );                                                               write (1, text, strlen (text));                                                  }                                                                                                                                                       
[helppc.bosbyte.nl]                 stdarg                    Home  Back  Topics