Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

The BLAH Reference Manual.

0.95

Author:
Ingo Schröder

Kilian A. Foth

Michael Daum

Introduction

This is the reference manual for the BLAH library for the C programming language. BLAH stands for bitstrings, lists, arrays and hashes --- admittedly a poorly chosen giving the set of container data types most usually used. Actually there are more data types than these but who cares if the name is funky enuf.

The BLAH library is copyright by The CDG Team; it is distributed under the GNU General Publice License Version 2. You should have received a copy of the GPL with the software.

The maintainers of this software can be contacted at the following email address:

 blah@nats.informatik.uni-hamburg.de 

Usage

The BLAH library is installed as both shared and static versions of the library by default. In order to use it your C code must include the header file
 blah.h 

For instance, if you installed the header file in a system directory, a minimal C program might look as follows:

#include <stdio.h>
#include <blah.h>

int main(int argc, char **argv)
{
  List squares=listNew();
  int i;

  for (i=0; i<100; i++)
    {
      squares=listPrependElement(squares, (Pointer)(i*i));
    }
  printf("42th square is %d\n", (int)listNthElement(squares, 42));
  listDelete(squares);
}

You have to link against the BLAH library as well as the math library to create a binary:

$ gcc -o blah-example -lblah -lm blah-example.c
$ ./blah-example
42th square is 3364
$

Overview

The BLAH library defines the following container data types:


BLAH 0.95 (20 Oct 2004)