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