home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
aijournl
/
ai_oct86.arc
/
AIAPP3.FIG
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1986-07-16
|
384 b
|
14 lines
FUNCTION alloc_str(typ : node_type ; s : string80) : node_ptr ;
VAR
pt : node_ptr ;
BEGIN
get_memory(pt) ;
pt^.tag := typ ;
pt^.string_data := s ;
alloc_str := pt ;
END ; (* alloc_str *)
Figure 3 - Low level allocation routine for strings.