1: /*
   2: **  PRARGS -- print argument list
   3: **
   4: **	Takes an argument list such as expected by any main()
   5: **	or the DBU routines and prints them on the standard
   6: **	output for debugging purposes.
   7: **
   8: **	Parameters:
   9: **		pc -- parameter count.
  10: **		pv -- parameter vector (just like to main()).
  11: **
  12: **	Returns:
  13: **		nothing
  14: **
  15: **	Side Effects:
  16: **		output to stdout only.
  17: **
  18: **	Requires:
  19: **		xputchar
  20: **		printf
  21: **
  22: **	Trace Flags:
  23: **		none
  24: **
  25: **	Diagnostics:
  26: **		none
  27: **
  28: **	Syserrs:
  29: **		none
  30: **
  31: **	History:
  32: **		2/27/78 (eric) -- changed to use xputchar
  33: */
  34: 
  35: prargs(pc, pv)
  36: int pc;
  37: char    **pv;
  38: {
  39:     register char   **p;
  40:     register char   c;
  41:     int     n;
  42:     register char   *q;
  43: 
  44:     n = pc;
  45:     printf("#args=%d:\n", n);
  46:     for (p = pv; n-- > 0; p++)
  47:     {
  48:         q = *p;
  49:         while ((c = *q++) != 0)
  50:             xputchar(c);
  51:         putchar('\n');
  52:     }
  53: }
Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1822
Valid CSS Valid XHTML 1.0 Strict