KNJIGE by Mihailo Despotovic, August 1995

A catalogue of my books for DOS, “knjige” meaning books, written in C in four days in August 1995. It shows one book at a time: the original title, author and awards, then the Serbian translation, its translator, publisher and edition, and a note. You can page through the books, sort them by any field, search any field, and print a book. The books are read from a text file, and this one is my catalogue as I last saved it, in May 1998. It runs here as it did in DOS, in Serbian, with the English translation of the screen beside it. Click the screen and type, or use the buttons.

Keys:
The DOS screen

        
In English

        

The printer

O prints the book on the screen to stdprn, the printer, after asking if it is completely ready; D is “da”, yes. Each book ends with a form feed, a new page, which a comment in the code calls “desirable for InkJet and Laser (thanks to Magda)”. Magda is Davor Magdić.

Nothing printed yet.

The database

The books are in BAZA.KNJ, a text file: @ and a book's number, then one line for each field, #1 to #E. The help screen (U) explains it, with the limits.

The bugs, and the fixes

Fixed corrects the first five. The port was checked against the original C, compiled with a simulated DOS screen, keyboard and printer: in 280 sessions, on this database and on a made-up one with every field at and past its limits, it shows the same screens, beeps, printouts and hangs.

The original C code