2 blocks - return a named block or number of unfreed named blocks
8 id non-negative integer
10 return named block or null value
13 With no argument blocks() returns the number of blocks that have
14 been created but not freed by the blkfree function.
16 With argument id less than the number of named blocks that have been
17 created, blocks(id) returns the named block with identifying index id.
18 These indices 0, 1, 2, ... are assigned to named blocks in the order
24 ; B = blk("beta") = {1,2,3}
29 chunksize = 256, maxsize = 256, datalen = 3
34 "Non-allocated index number for blocks"
45 ## Copyright (C) 1999 Landon Curt Noll
47 ## Calc is open software; you can redistribute it and/or modify it under
48 ## the terms of the version 2.1 of the GNU Lesser General Public License
49 ## as published by the Free Software Foundation.
51 ## Calc is distributed in the hope that it will be useful, but WITHOUT
52 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
53 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
54 ## Public License for more details.
56 ## A copy of version 2.1 of the GNU Lesser General Public License is
57 ## distributed with calc under the filename COPYING-LGPL. You should have
58 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
59 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
61 ## @(#) $Revision: 30.1 $
62 ## @(#) $Id: blocks,v 30.1 2007/03/16 11:10:42 chongo Exp $
63 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/blocks,v $
65 ## Under source code control: 1997/04/05 13:07:13
66 ## File existed as early as: 1997
68 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
69 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/