include/libtu/util.h

Sun, 14 May 2000 18:58:42 +0200

author
tuomov
date
Sun, 14 May 2000 18:58:42 +0200
changeset 10
ab335fe0d26d
parent 9
55e7f2ff6021
child 12
5fd153b29d40
permissions
-rw-r--r--

trunk: changeset 13
Use $(ANSI_SOURCE)

/*
 * libtu/util.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2000. 
 * See the included file LICENSE for details.
 */

#ifndef LIBTU_UTIL_H
#define LIBTU_UTIL_H

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

#include "types.h"


typedef struct{
	const char *name;
	const char *version;
	const char *authors;
	const char *license;
	const char *usage;
} ProgInfo;


extern void libtu_init_argv0(const char *argv0, const ProgInfo *info);
extern void libtu_init(int *argc, char *argv[], const ProgInfo *info);

extern const char *prog_execname();
extern const ProgInfo *prog_info();
extern const char *prog_name();
extern const char *prog_version();
extern const char *prog_authors();
extern const char *prog_license();
extern const char *prog_usage();

#endif /* LIBTU_UTIL_H */

mercurial