home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
cug
/
softt-12.lbr
/
SETCREAT.DQC
/
SETCREAT.DOC
Wrap
Text File
|
1984-07-05
|
1KB
|
53 lines
.he 'SET_CREATE'03/23/80'SET_CREATE'
NAME
.sp
set_create - generate a new, initially empty set
.sp 2
SYNOPSIS
.sp
.nf
pointer function set_create (set, size)
pointer set
integer size
.sp 2
.fi
DESCRIPTION
.sp
'Set_create' is used to create a Pascal-style bit vector representation
for a set of integers from 1 to 'size'.
The function return and the variable 'set' are set to the address
in dynamic storage of the newly-created set.
.sp
All set manipulation routines make use of dynamic storage,
which must be initialized before use.
See 'dsinit' for further information.
.sp
Note that all set manipulation routines have long names.
To avoid unique name conflicts with other routines, any Ratfor
program using the set routines should include the following
statement:
.sp
.ti +5
include "=src=/lcl/lib/swtmlb.u/swtmlb_link.r.i"
.sp 2
IMPLEMENTATION
.sp
'Set_create' calls 'dsget' to obtain a contiguous array of 16-bit
words that is large enough to represent a bit vector with 'size'
elements.
The first word of this array is set to 'size' for use by other
set manipulation routines.
A call to 'set_init' then insures that the new set is empty.
.sp 2
ARGUMENTS MODIFIED
.sp
set
.sp 2
CALLS
.sp
dsget, set_init
.sp 2
SEE ALSO
.sp
other set routines ('set_?*') (4)