include/libtu/util.h

Sat, 29 Apr 2000 15:35:45 +0200

author
tuomov
date
Sat, 29 Apr 2000 15:35:45 +0200
changeset 9
55e7f2ff6021
parent 5
f878a9ffa3e0
child 12
5fd153b29d40
permissions
-rw-r--r--

trunk: changeset 12
Changed the copyright notice in headers

5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
1 /*
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
2 * libtu/util.h
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
3 *
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 5
diff changeset
4 * Copyright (c) Tuomo Valkonen 1999-2000.
5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
5 * See the included file LICENSE for details.
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
6 */
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
7
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 5
diff changeset
8 #ifndef LIBTU_UTIL_H
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 5
diff changeset
9 #define LIBTU_UTIL_H
5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
10
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
11 #include <stdarg.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
12 #include <stdio.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
13 #include <stdlib.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
14
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
15 #include "types.h"
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
16
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
17
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
18 typedef struct{
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
19 const char *name;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
20 const char *version;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
21 const char *authors;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
22 const char *license;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
23 const char *usage;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
24 } ProgInfo;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
25
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
26
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
27 extern void libtu_init_argv0(const char *argv0, const ProgInfo *info);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
28 extern void libtu_init(int *argc, char *argv[], const ProgInfo *info);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
29
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
30 extern const char *prog_execname();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
31 extern const ProgInfo *prog_info();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
32 extern const char *prog_name();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
33 extern const char *prog_version();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
34 extern const char *prog_authors();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
35 extern const char *prog_license();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
36 extern const char *prog_usage();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
37
9
55e7f2ff6021 trunk: changeset 12
tuomov
parents: 5
diff changeset
38 #endif /* LIBTU_UTIL_H */

mercurial