[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is there a macro that prints the incoming param list?



is there any marco that printfs the incoming list, or am i asking too much of the
compiler at runtime?


what a problem to do

int a;
for (a=0;a<argc;a++)
 printf("Arg %d == %s",a,argv[a]);



example:

	main (int argc, char *argv)

	with this macro might print:

	"2", "testinput"

	and baz(char *file, int count)

	similarly might print,

	"testinput", "47"

	i'm probably asking the impossible, but this is certainly the place to
	ask.

	thanks,

	gary


	ps: i'm looking to create a DEBUG header.



--
Gary Kline  kline_(_at_)_thought_(_dot_)_org  http://www.thought.org  Public Service Unix
       http://jottings.thought.org   http://transfinite.thought.org
   The 4.91a release of Jottings: http://jottings.thought.org/index.php

_______________________________________________
freebsd-questions_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe_(_at_)_freebsd_(_dot_)_org"


_______________________________________________
freebsd-questions_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org