Category : C Source Code
Archive   : J414SRC.ZIP
Filename : LIST.H

 
Output of file : LIST.H contained in archive : J414SRC.ZIP
/***************************************************************************
* This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE *
* is provided to you without charge, and with no warranty. You may give *
* away copies of JOVE, including sources, provided that this notice is *
* included in all the files. *
***************************************************************************/

/* generic singly linked list package */

typedef char *Element;

typedef struct cons List;

struct cons {
Element *car;
List *cdr;
};

#define list_next(lp) ((lp)->cdr)
#define list_data(lp) ((lp)->car)

extern Element
*list_push proto((List **, Element *)),
*list_pop proto((List **));


  3 Responses to “Category : C Source Code
Archive   : J414SRC.ZIP
Filename : LIST.H

  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/