diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-24 15:23:20 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-24 15:23:20 +0200 |
commit | a80d9d176d069a5b70427fa0154b7c333550a047 (patch) | |
tree | 59662db9af7fe6854c041f2dd0f22f2f01014238 /qpdf/qpdf-ctest.c | |
parent | 9cc43c6e44fa899acc84341899cb41b359d245b4 (diff) | |
download | qpdf-a80d9d176d069a5b70427fa0154b7c333550a047.tar.zst |
add C interface for getting software version
git-svn-id: svn+q:///qpdf/trunk@903 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'qpdf/qpdf-ctest.c')
-rw-r--r-- | qpdf/qpdf-ctest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qpdf/qpdf-ctest.c b/qpdf/qpdf-ctest.c index ef839c31..30e7af2f 100644 --- a/qpdf/qpdf-ctest.c +++ b/qpdf/qpdf-ctest.c @@ -292,6 +292,12 @@ int main(int argc, char* argv[]) { whoami = argv[0]; } + if ((argc == 2) && (strcmp(argv[1], "--version") == 0)) + { + printf("qpdf-ctest version %s\n", qpdf_get_qpdf_version()); + return 0; + } + if (argc < 5) { fprintf(stderr, "usage: %s n infile password outfile\n", whoami); |