From c01ab27ea73e74fe353df354b8e7e0bb9fde01e7 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Wed, 21 Oct 1998 20:34:06 +0000 Subject: added poptGetInvocationName() svn path=/trunk/; revision=450 --- support/popt-gnome.h | 1 + support/popt.c | 4 ++++ support/popt.h | 1 + 3 files changed, 6 insertions(+) (limited to 'support') diff --git a/support/popt-gnome.h b/support/popt-gnome.h index 64c7b806..a759f219 100644 --- a/support/popt-gnome.h +++ b/support/popt-gnome.h @@ -95,5 +95,6 @@ void poptSetExecPath(poptContext con, const char * path, int allowAbsolute); void poptPrintHelp(poptContext con, FILE * f, int flags); void poptPrintUsage(poptContext con, FILE * f, int flags); void poptSetOtherOptionHelp(poptContext con, const char * text); +const char * poptGetInvocationName(poptContext con); #endif diff --git a/support/popt.c b/support/popt.c index be9a1810..22d5e089 100644 --- a/support/popt.c +++ b/support/popt.c @@ -543,3 +543,7 @@ int poptStuffArgs(poptContext con, char ** argv) { return 0; } + +const char * poptGetInvocationName(poptContext con) { + return con->os->argv[0]; +} diff --git a/support/popt.h b/support/popt.h index 64c7b806..a759f219 100644 --- a/support/popt.h +++ b/support/popt.h @@ -95,5 +95,6 @@ void poptSetExecPath(poptContext con, const char * path, int allowAbsolute); void poptPrintHelp(poptContext con, FILE * f, int flags); void poptPrintUsage(poptContext con, FILE * f, int flags); void poptSetOtherOptionHelp(poptContext con, const char * text); +const char * poptGetInvocationName(poptContext con); #endif -- cgit v1.2.1