summaryrefslogtreecommitdiff
path: root/ares_version.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-24 20:28:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-24 20:28:04 +0000
commitcfa535b3a593f08bdee72ff1c8ef393e6d07ac35 (patch)
treea409fbb211837f997428188eafebacc4903b6f69 /ares_version.c
parentd76ed5d861588598fe58287b4a896452ba7950e1 (diff)
downloadc-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.tar.gz
c-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.tar.bz2
c-ares-cfa535b3a593f08bdee72ff1c8ef393e6d07ac35.zip
Introducing ares_version(), so that we can have apps get version info about
what particular ares version that is being used.
Diffstat (limited to 'ares_version.c')
-rw-r--r--ares_version.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ares_version.c b/ares_version.c
new file mode 100644
index 0000000..04b269e
--- /dev/null
+++ b/ares_version.c
@@ -0,0 +1,11 @@
+/* $Id$ */
+
+#include "ares_version.h"
+
+char *ares_version(int *version)
+{
+ if(version)
+ *version = ARES_VERSION;
+
+ return ARES_VERSION_STR;
+}