Read Me
cconstants - tools for reading constants from C header files
Building and Installation
=========================
You will need a C compiler, development header files, and make.
Both GNU make and BSD make should work. Once you have those,
building and installation should be as simple as:
$ ./configure
$ make
$ sudo make install
This will install the library is /usr/local/lib and the binaries in
/usr/local/bin. If different destinations are desired, these can be
specified at installation time by overriding Makefile variables. For
example, the following command installs binaries to /usr/bin and
libraries to /usr/lib:
$ sudo make install PREFIX=/usr/local
See src/Makefile for the details of how installation works.
Usage
=====
You can use cconstants in two ways: (1) as a library and (2) as
command line programs.
Using cconstants as a library involves including cconstants.h in your
program and linking it with -lcconstants. You can then use the functions
defined in cconstants.h to get the values of C constants.
A couple of command line programs are also provided: cconstants_get_long
and cconstants_get_ulong. These can be used to get the value of a C
constant as a signed long or unsigned long, respectively. For example,
you might have the following interaction:
$ cconstants_get_long F_GETLK
5