Wed, 23 Feb 2005 19:05:01 +0100
Added dlist iteration macros.
0 | 1 | /* |
2 | * libtu/util.c | |
3 | * | |
36 | 4 | * Copyright (c) Tuomo Valkonen 1999-2002. |
53 | 5 | * |
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. | |
0 | 8 | */ |
9 | ||
10 | #include <stdarg.h> | |
11 | #include <stdio.h> | |
12 | #include <stdlib.h> | |
13 | #include <string.h> | |
14 | ||
85 | 15 | #include "locale.h" |
70 | 16 | #include "util.h" |
17 | #include "misc.h" | |
0 | 18 | |
19 | ||
20 | static const char *progname=NULL; | |
21 | ||
22 | ||
12 | 23 | void libtu_init(const char *argv0) |
0 | 24 | { |
62 | 25 | progname=argv0; |
85 | 26 | |
27 | #ifndef CF_NO_LOCALE | |
62 | 28 | textdomain(simple_basename(argv0)); |
0 | 29 | #endif |
30 | } | |
31 | ||
32 | ||
33 | const char *prog_execname() | |
34 | { | |
62 | 35 | return progname; |
0 | 36 | } |
37 |