2 argv - displays information about its args
5 custom("argv" [, arg ...])
13 This custom function will, for each arg given print:
17 number of elements (size())
18 memory size (sizeof())
20 The number of args passed, not counting the initial "argv" name
24 > foo=5^713; bar=17; baz=list(2,3,4);
25 > custom("argv", foo, bar, baz, 3+4.5i, pi())
26 arg[0] rational_value size=1 sizeof=272
27 arg[1] rational_value size=1 sizeof=68
28 arg[2] list size=3 sizeof=256
29 arg[3] complex_value size=1 sizeof=140
30 arg[4] rational_value size=1 sizeof=84
34 calc must be built with ALLOW_CUSTOM= -DCUSTOM
35 calc must be executed with a -C arg.
43 ## Copyright (C) 1999 Landon Curt Noll
45 ## Calc is open software; you can redistribute it and/or modify it under
46 ## the terms of the version 2.1 of the GNU Lesser General Public License
47 ## as published by the Free Software Foundation.
49 ## Calc is distributed in the hope that it will be useful, but WITHOUT
50 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
51 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
52 ## Public License for more details.
54 ## A copy of version 2.1 of the GNU Lesser General Public License is
55 ## distributed with calc under the filename COPYING-LGPL. You should have
56 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
57 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59 ## @(#) $Revision: 30.1 $
60 ## @(#) $Id: argv,v 30.1 2007/03/16 11:10:04 chongo Exp $
61 ## @(#) $Source: /usr/local/src/bin/calc/custom/RCS/argv,v $
63 ## Under source code control: 1997/03/09 20:28:01
64 ## File existed as early as: 1997
66 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
67 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/