util.c

Sat, 09 Oct 2004 17:38:29 +0200

author
tuomov
date
Sat, 09 Oct 2004 17:38:29 +0200
changeset 83
2cdbf1464796
parent 79
81e9a32b1c0c
child 85
9f94b2e96e3b
permissions
-rw-r--r--

trunk: changeset 1813
Minor libextl related changes etc.

/*
 * libtu/util.c
 *
 * Copyright (c) Tuomo Valkonen 1999-2002. 
 *
 * You may distribute and modify this library under the terms of either
 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
 */

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef CONFIG_LOCALE
#include <libintl.h>
#endif

#include "util.h"
#include "misc.h"


static const char *progname=NULL;


void libtu_init(const char *argv0)
{
    progname=argv0;
    
#ifdef CONFIG_LOCALE
    textdomain(simple_basename(argv0));
#endif
}


const char *prog_execname()
{
    return progname;
}

mercurial