Debian Codegraph @

madrisan-nagios-plugins-linux/nagios-plugins-linux/include/progname.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 /* progname.h -- a library for setting the name of each plugin module
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef _PROGNAME_H
18 #define _PROGNAME_H
19
20 /* Programs using this file should do the following in main():
21 set_program_name (argv[0]);
22 */
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /* String containing name the program is called with. */
29 extern const char *program_name;
30
31 /* String containing a short version of 'program_name'. */
32 extern const char *program_name_short;
33
34 /* Set program_name, based on argv[0].
35 argv0 must be a string allocated with indefinite extent, and must not be
36 modified after this call. */
37 void set_program_name (const char *argv0);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* _PROGNAME_H */