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.
20 static const char *progname=NULL;
23 void libtu_init(const char *argv0)
28 textdomain(simple_basename(argv0));
33 const char *libtu_progname()
39 const char *libtu_progbasename()
41 const char *s=strrchr(progname, '/');
43 return (s==NULL ? progname : s+1);