A custom C program to take my data file of lottery results and convert it
into a header file of C data that can be #included into the source code of
the C programs mentioned below. It also does formulaic verification of lottery
results and issues warnings if any don't tally. The other task of the program
is to calculate
frequencies
(both with and without the bonus number) and
generate them as C arrays for including into the source code in a similar
manner to the raw results mentioned above. Note that the C programs mentioned
below can #include the bhs macro header file and hence generate the appropriate
headers and footers to match the "manual" equivalent.
The whole reason for generating C header files containing arrays is that
by embedding the data in the C program, it makes it independent of data files.
This means that no file opening/reading/closing is needed when running the
program and this results in a huge performance boost, particularly for CGI
execution.