projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46e27fd
)
added poptGetInvocationName()
author
ewt
<devnull@localhost>
Wed, 21 Oct 1998 20:34:05 +0000
(20:34 +0000)
committer
ewt
<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
patch
|
blob
|
history
popt/popt.h
patch
|
blob
|
history
diff --git
a/popt/popt.c
b/popt/popt.c
index
be9a181
..
22d5e08
100644
(file)
--- a/
popt/popt.c
+++ b/
popt/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/popt/popt.h
b/popt/popt.h
index
64c7b80
..
a759f21
100644
(file)
--- a/
popt/popt.h
+++ b/
popt/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