home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / C / CDLLIST.ZIP / LIST.DOC < prev    next >
Encoding:
Text File  |  1993-06-01  |  2.1 KB  |  50 lines

  1. The contents of this archive should be as follows:
  2.     list.doc  -  this short documentation file
  3.     list.c    -  the code used to manipulate the list
  4.     list.h    -  the header file that should be included with the code 
  5.              you write
  6.  
  7. This is code for an abstract data type representing a circular doubly linked 
  8. list.  This type of list is extemely usefull for everything from text editors 
  9. to any type of dynamic storage.  To learn how to use this ADT (abstract data 
  10. type) look through the list.h file.  The list.h file should contain adequate 
  11. documentation of each function for any programmer, from novice to expert.
  12. Also, if you look at the top two lines of each file (list.c & list.h) you 
  13. will find these two lines:
  14.  
  15.         #define data_type    int
  16.         #define name_of_list list_of_ints
  17.  
  18. The top line defines what type of data the list will contain and the second 
  19. line defines what you are to call this list type in your program, if you so 
  20. desire you can change them. Do not change 'data_type' or 'name_of_list' since 
  21. they are found in the rest of the code.  For example if you want to have a 
  22. list of chars change the lines to read something like:
  23.  
  24.         #define data_type    char
  25.         #define name_of_list list_of_chars
  26.  
  27. (remember to make this change to the beginning of each file, list.c & list.h)
  28. And then in your code merely #include list.h and declare :
  29.     'list_of_char MY_LIST,ANOTHER_LIST,etc;'
  30.  
  31. I advise you to only change these two lines of the file, no others (unless
  32. you really know what you're doing).  Also, if you find any 'bugs' or ways to 
  33. make the code more elegant please write me:
  34.  
  35.         Constantino Michailidis
  36.         1 Balston Dr. 
  37.         Verona, NJ 07044
  38.  
  39. my phone # is 201-857-4667 and I can often be reached on North Jersey BBS's
  40. namely:
  41.         Compucon         201-884-5920
  42.         221-B Baker st.  201-661-2690
  43.         Pacific Islander 201-661-3694
  44.  
  45.  
  46. Also, not to be annoying but if you find this code particullarly useful, as in
  47. all cases of shareware, I would appreciate a small donation.  Any amount would
  48. be useful since I am a starving student.  You can send your donation to my 
  49. above address.  I hope this code will make your life easier.
  50.