Bit Vectors in C

What's New

Created: 20 July 1996, Last updated: 26 July 1996

Changes to the published code

Since the publication of my article in Dr. Dobb's Journal, I've updated the code a bit (see changes.html).

New Code

Many times I've found myself printing the bit vectors in hex to help understand some algorithm or other. I finally got around to writing this as the reusable function ba_b2hex.c. It uses <string.h> and is therefore more complicated than the published code. Use it at your own risk.

If I ever write an updated version of the article I'll probably do it in the style I demonstrate (following P. J. Plauger) in my notes about Using C to Encapsulate an Abstract Data Type.

As I wrote in the article the code has great general application. One particularly nifty application (I think) is my dynamic bibliography (released 15 July 1996). If your WWW browser works with the FORM element then check out the bibliography at http://www.csd.uwo.ca/cgi-bin/tech-refs.

Resources at other sites

I've also collected links to a few related resources.


James Blustein <jamie@csd.uwo.ca>