Category : Files from Magazines
Archive   : AIOCT86.ZIP
Filename : AIAPP4.FIG

 
Output of file : AIAPP4.FIG contained in archive : AIOCT86.ZIP

FUNCTION cons(new_node,list : node_ptr) : node_ptr ;
VAR
p : node_ptr ;
BEGIN
get_memory(p) ;
p^.tag := cons_node ;
p^.head_ptr := new_node ;
p^.tail_ptr := list ;
cons := p ;
END ; (* cons *)

FUNCTION head(list : node_ptr) : node_ptr ;
BEGIN
IF list = NIL
THEN head := NIL
ELSE head := list^.head_ptr ;
END ; (* head *)

FUNCTION tail(list : node_ptr) : node_ptr ;
BEGIN
IF list = NIL
THEN tail := NIL
ELSE IF list^.tag = cons_node
THEN tail := list^.tail_ptr
ELSE tail := NIL ;
END ; (* tail *)

Figure 4 - Basic list processing routines.


  3 Responses to “Category : Files from Magazines
Archive   : AIOCT86.ZIP
Filename : AIAPP4.FIG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/