In order to access the tgz and zip files on this page, you should install Winzip. Fortune 2.10 Fortune Cookie program. C++ Source (Easily converted to ANSI C) You will need Mylib to compile the fortune sources. This program requires DPMI services. Suitable DPMI clients include Windows 3.1x and '95. A freeware DPMI client is available on this website. Click to download CWSDPMI.
Fortunix This source code can be compiled using the GCC (Maybe CC too) Compiler for Linux/Unix to produce a working version of my fortune program for unix/linux. Unix/Linux HINT: You can use a soft link to the fortune binary to use a different quote text file. For Example the command:
See the fortunix.me file in the distribution for warranty and other details. The source is contained within a tarred, gzipped Archive. To extract it use: IF YOU USE THE fortune.txt FILE FROM fortfile.zip OR atheist.txt FROM atheist.zip REMEMBER THAT THESE FILES ARE DOS FORMATTED AND THUS WILL HAVE A ^M AT THE END OF EACH LINE WHEN YOU GO TO USE THEM IN UNIX, REMEMBER TO USE A dos2unix LIKE UTILITY TO GET RID OF THESE ^M BECAUSE fortune -i WILL NOT WORK. Undosundos: A small bourne shell script that will remove ^M from a text file in unix. Java Version of Fortune Cookie ProgramFortune.java A very pedestrian conversion of the unix version of fortune, "fortunix". No longer supports the QFJMP header for the fortune cookie file. Only requires a % to seperate each quote. See Fortune.java for more information. |