File: util.h

package info (click to toggle)
notion 4.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,676 kB
  • sloc: ansic: 47,508; sh: 2,096; makefile: 603; perl: 270
file content (39 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * libtu/util.h
 *
 * 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.
 */

#ifndef LIBTU_UTIL_H
#define LIBTU_UTIL_H

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

#include "types.h"
#include "optparser.h"

/**
 * @parame argv0 The program name used to invoke the current program, with
 * path (if specified). Unfortunately it is generally not easy to determine
 * the encoding of this string, so we don't require a specific one here.
 *
 * @see http://stackoverflow.com/questions/5408730/what-is-the-encoding-of-argv
 */
extern void libtu_init(const char *argv0);
/**
 * The program name used to invoke the current program, with path (if
 * supplied). Unfortunately the encoding is undefined.
 */
extern const char *libtu_progname();
/**
 * The program name used to invoke the current program, without path.
 * Unfortunately the encoding is undefined.
 */
extern const char *libtu_progbasename();

#endif /* LIBTU_UTIL_H */