home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / kfortune.zoo / kfortune.doc < prev    next >
Encoding:
Text File  |  1989-05-20  |  2.4 KB  |  60 lines

  1. Kfortune: Kenji's "fortune" clone
  2. Version 1.0: May 20, 1989
  3. Written by Kenji Rikitake
  4. Copyright (c) 1989 by Kenji Rikitake
  5. All Rights Reserved.
  6. The author allows this program to be used for any purposes.
  7.  
  8. Kfortune is a very simple clone of Ken Arnold's "fortune" program,
  9. contained within 4.xBSD UNIX games. I have entirely rewritten
  10. whole codes, and they will not violate copyrights of AT&T or UCB.
  11.  
  12. You should compile all programs with Microsoft C 5.1.
  13. I have made this program solely for myself, so I don't care about
  14. Turbo C, Zortech C, or whatever. :-)
  15.  
  16. Kfortune uses 2 files.
  17. TXTFILE is a database text in which contains the strings
  18. chosen and displayed by Kfortune programs.
  19. TPFILE is a database pointer file of TXTFILE in which contains
  20. the number of strings and the pointers to each string in TXTFILE.
  21.  
  22. You have to modify kfortune.c's TPFILE and TXTFILE macros
  23. if you want to change the names of Kfortune files.
  24. Defaults are:
  25. TPFILE  = "a:\\usr\\games\\lib\\kfortune.tp",
  26. TXTFILE = "a:\\usr\\games\\lib\\kfortune.txt".
  27. (My machine has a hard disk drive on drive A.)
  28.  
  29. Kfortune has 3 programs.
  30.  
  31. kfscan.c    :Scan TXTFILE and make TPFILE
  32. kfhash.c    :Hash TPFILE and ramdomize it
  33. kfortune.c    :Pick a string from TXTFILE pointed by TPFILE
  34.  
  35. Each of TXTFILE strings are terminated by ^L (0x0c).
  36. You can easily make your own TXTFILE.
  37.  
  38. I have included a tiny set of TPFILE and TXTFILE, extracted from
  39. 4.3BSD fortune. This database is not of my copyright, and
  40. Ken Arnold, the editor, writes a warning as follows:
  41.  
  42. Warning:    The fortunes contained in the fortune database have
  43.         been collected haphazardly from a caphony of sources,
  44.         in number so huge it boggles the mind.  It is
  45.         impossible to do any meaningful quality control on
  46.         attributions, or lack thereof, or exactness of the
  47.         quote.  Since this database is not used for profit, and
  48.         since entire works are not published, it falls under
  49.         fair use, as we understand it.  However, if any
  50.         half-assed idiot decides to make a profit off of this,
  51.         they will need to double check it all, and nobody not
  52.         involved of such an effort makes any warranty that
  53.         anything in here bears any relation to the real world
  54.         of literature, law, or other bizzarrity.
  55.  
  56. Well, I quoted only 10 items from Ken's database. I think this will
  57. not violate his copyright.
  58.  
  59. Anyway, enjoy yourself with this simple fortune.
  60.