File:  [CSRG BSD Unix] / 43BSD / ingres / source / gutil / prargs.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

# include	<sccs.h>

SCCSID(@(#)prargs.c	8.1	12/31/84)

/*
**  PRARGS -- print argument list
**
**	Takes an argument list such as expected by any main()
**	or the DBU routines and prints them on the standard
**	output for debugging purposes.
**
**	Parameters:
**		pc -- parameter count.
**		pv -- parameter vector (just like to main()).
**
**	Returns:
**		nothing
**
**	Side Effects:
**		output to stdout only.
*/

prargs(pc, pv)
int	pc;
char	**pv;
{
	register char	**p;
	register char	c;
	int		n;
	register char	*q;

	n = pc;
	printf("#args=%d:\n", n);
	for (p = pv; n-- > 0; p++)
	{
		q = *p;
		while ((c = *q++) != 0)
			xputchar(c);
		putchar('\n');
	}
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.