home *** CD-ROM | disk | FTP | other *** search
- The contents of this archive should be as follows:
- list.doc - this short documentation file
- list.c - the code used to manipulate the list
- list.h - the header file that should be included with the code
- you write
-
- This is code for an abstract data type representing a circular doubly linked
- list. This type of list is extemely usefull for everything from text editors
- to any type of dynamic storage. To learn how to use this ADT (abstract data
- type) look through the list.h file. The list.h file should contain adequate
- documentation of each function for any programmer, from novice to expert.
- Also, if you look at the top two lines of each file (list.c & list.h) you
- will find these two lines:
-
- #define data_type int
- #define name_of_list list_of_ints
-
- The top line defines what type of data the list will contain and the second
- line defines what you are to call this list type in your program, if you so
- desire you can change them. Do not change 'data_type' or 'name_of_list' since
- they are found in the rest of the code. For example if you want to have a
- list of chars change the lines to read something like:
-
- #define data_type char
- #define name_of_list list_of_chars
-
- (remember to make this change to the beginning of each file, list.c & list.h)
- And then in your code merely #include list.h and declare :
- 'list_of_char MY_LIST,ANOTHER_LIST,etc;'
-
- I advise you to only change these two lines of the file, no others (unless
- you really know what you're doing). Also, if you find any 'bugs' or ways to
- make the code more elegant please write me:
-
- Constantino Michailidis
- 1 Balston Dr.
- Verona, NJ 07044
-
- my phone # is 201-857-4667 and I can often be reached on North Jersey BBS's
- namely:
- Compucon 201-884-5920
- 221-B Baker st. 201-661-2690
- Pacific Islander 201-661-3694
-
-
- Also, not to be annoying but if you find this code particullarly useful, as in
- all cases of shareware, I would appreciate a small donation. Any amount would
- be useful since I am a starving student. You can send your donation to my
- above address. I hope this code will make your life easier.
-