home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT201.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-18  |  653 b   |  28 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat201.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6.  
  7. int argument_list(char *previous, ...)
  8. {
  9.    va_list param;
  10.    int cnt;
  11.  
  12.    va_start(param, previous);
  13.    cnt = vprintf(previous, param);
  14.    va_end(param);
  15.  
  16.    return(cnt);
  17. }
  18.  
  19. void main()
  20. {
  21.    char *str1    = "Fox SoftWare";
  22.    int   number1 = 38;
  23.    float number2 = -179.0;
  24.    char  *str2   = "Microsoft";
  25.  
  26.    argument_list("%s %d %f %s\n",str1, number1, number2,str2);
  27. }
  28.