summaryrefslogtreecommitdiff
path: root/examples/ldns-version.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ldns-version.c')
-rw-r--r--examples/ldns-version.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/ldns-version.c b/examples/ldns-version.c
new file mode 100644
index 0000000..97a5b2d
--- /dev/null
+++ b/examples/ldns-version.c
@@ -0,0 +1,16 @@
+/*
+ * ldns-version shows ldns's version
+ *
+ * (c) NLnet Labs, 2005 - 2008
+ * See the file LICENSE for the license
+ */
+
+#include "config.h"
+#include <ldns/ldns.h>
+
+int
+main(void)
+{
+ printf("%s\n", ldns_version());
+ return 0;
+}