README.md

changeset 119
87e3bb5086e8
parent 107
da2a985da6ee
equal deleted inserted replaced
118:dbf3a6323fda 119:87e3bb5086e8
1
2 # libtu
3
4 Written 1999–2007 by Tuomo Valkonen <tuomov@iki.fi>
5
6 Libtu is a small utility library for programs written in C, used by my old C codes.
7
8 Most of this library may be distributed and modified under either under
9 the Clarified Artistic License or the GNU LGPL, version 2.1 or later,
10 both reproduced in the file LICENSE. The red-black tree code is under
11 the GNU LGPL; see `README.rb` for details.
12
13 To build the library, first edit system.mk to customize it for your
14 system if necessary. Then `make depend && make`.
15 To install it run `make install` (perhaps as root depending on
16 where you are installing it).
17
18 If you want to use it in your programs, you may try to figure out how
19 by reading the header files (`include/*.h`) and test programs (`tester*.c`).
20 Or you could try urging me to write some sort of a manual.
21
22 ## Requisites
23
24 Libtu needs the functions asprintf and vasprintf. These do not
25 exist on most platforms. One implementation by Mark Martinec
26 is included in `snprintf_2.2/` and is used by default. To use the
27 system's versions of these functions, if available, modify
28 system.mk.
29
30 The implementation of red-black trees is based on that by
31 James S. Plank; see `README.rb` for details.

mercurial