number of arguments function for 4.1bsd VAX cc(1)
Dave Long
long at oliveb.UUCP
Mon Feb 25 08:47:30 AEST 1985
It has been pointed correctly pointed out that this will work only as long
as the arguments are smaller or equal to int/long size or are pointers. How-
ever, it does allow one to see how large an array of ints has to be to hold all
of the arguments without losing information. It is possible to see how many
btyes the arguments take up by taking out the shift by -2. Perhaps I should
have named it "sizeargs".
--
gnoL evaD
{msoft,allegra,gsgvax,fortune,hplabs,idi,ios,
nwuxd,ihnp4,tolrnt,tty3b,vlsvax1,zehntel}!oliveb!long
I'd rather be in a universe whose Creator had a bit more mechanical aptitude
and a little less imagination.
More information about the Comp.lang.c
mailing list