util.c

Tue, 01 Mar 2005 22:57:57 +0100

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 01 Mar 2005 22:57:57 +0100
changeset 95
6737fe676e48
parent 85
9f94b2e96e3b
child 109
96a557abc364
permissions
-rw-r--r--

Use install-sh.

/*
 * 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>

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


static const char *progname=NULL;


void libtu_init(const char *argv0)
{
    progname=argv0;

#ifndef CF_NO_LOCALE
    textdomain(simple_basename(argv0));
#endif
}


const char *prog_execname()
{
    return progname;
}

mercurial