Tue, 15 Feb 2005 18:57:52 +0100
Tailorization of trunk
Import of the upstream sources from the repository
http://tao.uab.es/ion/svn/libtu/trunk
as of revision 2
0 | 1 | /* |
2 | * libtu/util.h | |
3 | * | |
4 | * Copyright (c) Tuomo Valkonen 1999-2000. | |
5 | * | |
6 | * This file is distributed under the terms of the "Artistic License". | |
7 | * See the included file LICENSE for details. | |
8 | */ | |
9 | ||
10 | #ifndef __LIBTU_UTIL_H | |
11 | #define __LIBTU_UTIL_H | |
12 | ||
13 | #include <stdarg.h> | |
14 | #include <stdio.h> | |
15 | #include <stdlib.h> | |
16 | ||
17 | #include "types.h" | |
18 | ||
19 | ||
20 | typedef struct{ | |
21 | const char *name; | |
22 | const char *version; | |
23 | const char *authors; | |
24 | const char *license; | |
25 | const char *usage; | |
26 | } ProgInfo; | |
27 | ||
28 | ||
29 | extern void libtu_init_argv0(const char *argv0, const ProgInfo *info); | |
30 | extern void libtu_init(int *argc, char *argv[], const ProgInfo *info); | |
31 | ||
32 | extern const char *prog_execname(); | |
33 | extern const ProgInfo *prog_info(); | |
34 | extern const char *prog_name(); | |
35 | extern const char *prog_version(); | |
36 | extern const char *prog_authors(); | |
37 | extern const char *prog_license(); | |
38 | extern const char *prog_usage(); | |
39 | ||
40 | #endif /* __LIBTU_UTIL_H */ |