Releasing version 3-2014010505
[notion/jeffpc.git] / libtu / util.h
blob00e63fa3d44ad24430780e956e2f75f1c701baed
1 /*
2 * libtu/util.h
4 * Copyright (c) Tuomo Valkonen 1999-2002.
6 * You may distribute and modify this library under the terms of either
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
8 */
10 #ifndef LIBTU_UTIL_H
11 #define LIBTU_UTIL_H
13 #include <stdarg.h>
14 #include <stdio.h>
15 #include <stdlib.h>
17 #include "types.h"
18 #include "optparser.h"
20 /**
21 * @parame argv0 The program name used to invoke the current program, with
22 * path (if specified). Unfortunately it is generally not easy to determine
23 * the encoding of this string, so we don't require a specific one here.
25 * @see http://stackoverflow.com/questions/5408730/what-is-the-encoding-of-argv
27 extern void libtu_init(const char *argv0);
28 /**
29 * The program name used to invoke the current program, with path (if
30 * supplied). Unfortunately the encoding is undefined.
32 extern const char *libtu_progname();
33 /**
34 * The program name used to invoke the current program, without path.
35 * Unfortunately the encoding is undefined.
37 extern const char *libtu_progbasename();
39 #endif /* LIBTU_UTIL_H */