1 /* -*- buffer-read-only: t -*- vi: set ro: */ 2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3 /* Program name management. 4 Copyright (C) 2016-2019 Free Software Foundation, Inc. 5 6 This program is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 18 19 #ifndef _GL_GETPROGNAME_H 20 #define _GL_GETPROGNAME_H 21 22 #include <stdlib.h> 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 /* Return the base name of the executing program. 29 On native Windows this will usually end in ".exe" or ".EXE". */ 30 #ifndef HAVE_GETPROGNAME 31 extern char const *getprogname (void) 32 # ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME 33 _GL_ATTRIBUTE_PURE 34 # endif 35 ; 36 #endif 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif 43