death of nargs(3)

David Sherman dave at lsuc.uucp
Tue May 3 07:11:45 AEST 1988


I thought I really needed nargs() when I moved our CAI applications
from the PDP-11/23 development machine to this Perkin-Elmer 3220
(also running v7) in 1984.  Then I started getting advice from
the PE experts on the net, who explained why it couldn't be done
(most notably because the first argument is stored in space that's
used anyway, so 0 and 1 argument can't be distinguished).  I took
a look at all the places I used nargs, and found that they weren't
that hard to rewrite portably.  Whether you pass an arg count,
use a special flag as first argument (this was for functions called
from signal traps) or terminate the arguments with 0, it can usually
be done.

David Sherman
The Law Society of Upper Canada
-- 
{ uunet!mnetor  pyramid!utai  decvax!utcsri  ihnp4!utzoo } !lsuc!dave



More information about the Comp.unix.wizards mailing list