home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / FLEXLIST.ZIP / EXAMPLES.HTX < prev    next >
Text File  |  1989-07-27  |  2KB  |  58 lines

  1.         examples.htx
  2.         Copyright  1989, John W. Small, All rights reserved
  3.         PSW / Power SoftWare, P.O. Box 10072
  4.         McLean, Virginia 22102 8072
  5.         (703) 759-3838
  6.         7/27/89
  7.  
  8. examples
  9.  
  10.  
  11.  
  12.         The following examples will help give you a greater appreciation
  13.         for the power of FlexList to reduce code sizes and development
  14.         times as well as defining a hybrid stack-queue-list-array generic
  15.         data structure at run time.
  16.  
  17.  
  18.             view view        dump dump
  19.  
  20. view
  21.  
  22.  
  23.  
  24.         The view program reads an ascii file while building a FlexList
  25.         of file positions of page and subpage boundaries.  As a file is
  26.         viewed the FlexList nodes are accessed to determine the file
  27.         position to seek.  Then that portion of the file is read and
  28.         displayed on the screen.  This saves the file from having to be
  29.         stored in RAM.
  30.  
  31.         The major functions of view.c are shown below.
  32.  
  33.             loadpgs() |view view.c 48        Read ascii file while building a FlexList
  34.                             of file positions of page and subpage
  35.                             boundaries.
  36.  
  37.             putpgs() |view view.c 129        This is the program's main control loop.
  38. dump
  39.  
  40.  
  41.  
  42.         The dump program reads any file into a FlexList with each node
  43.         comprising 256 byte chunks of the file.  As the file is viewed
  44.         the FlexList nodes are accessed to retreive that portion of the
  45.         file.
  46.  
  47.         The major functions of dump.c are shown below.
  48.  
  49.             loaddf() |view dump.c 36        Read file into a FlexList with each node
  50.                             comprising 256 byte chunks of the file.
  51.  
  52.             dump() |view dump.c 103            This is the program's main control loop.
  53.  
  54.  
  55.  
  56.         dump examples.htx |dump examples.htx
  57.  
  58.