added poptGetInvocationName()
authorewt <devnull@localhost>
Wed, 21 Oct 1998 20:34:05 +0000 (20:34 +0000)
committerewt <devnull@localhost>
Wed, 21 Oct 1998 20:34:05 +0000 (20:34 +0000)
CVS patchset: 2472
CVS date: 1998/10/21 20:34:05

popt/popt.c
popt/popt.h

index be9a181..22d5e08 100644 (file)
@@ -543,3 +543,7 @@ int poptStuffArgs(poptContext con, char ** argv) {
 
     return 0;
 }
+
+const char * poptGetInvocationName(poptContext con) {
+    return con->os->argv[0];
+}
index 64c7b80..a759f21 100644 (file)
@@ -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