summaryrefslogtreecommitdiff
path: root/doc/zmq_version.txt
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-11 10:43:59 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-11 10:43:59 +0100
commit432fbd796bb4905fb19ceee802009b17e88e9256 (patch)
tree02685b3ab981a0f8f73ad089487cf97e7dc1be22 /doc/zmq_version.txt
parentbd9213e71222df66634d59581264ffe67210222c (diff)
ZMQII-72: Add zmq_version function (documentation)
Diffstat (limited to 'doc/zmq_version.txt')
-rw-r--r--doc/zmq_version.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/zmq_version.txt b/doc/zmq_version.txt
new file mode 100644
index 0000000..8c038ae
--- /dev/null
+++ b/doc/zmq_version.txt
@@ -0,0 +1,46 @@
+zmq_version(3)
+==============
+
+
+NAME
+----
+zmq_version - reports 0MQ version
+
+
+SYNOPSIS
+--------
+'void zmq_version (int *major, int *minor, int *patch);'
+
+
+DESCRIPTION
+-----------
+Returns current version of 0MQ. The functionality is useful for applications
+linking with 0MQ dynamically to make sure the right version of 0MQ is installed
+on the system.
+
+RETURN VALUE
+------------
+There is no return value.
+
+
+ERRORS
+------
+No errors are defined.
+
+
+EXAMPLE
+-------
+----
+int major, minor, patch;
+zmq_version (&major, &minor, &patch);
+printf ("Current 0MQ version is %d.%d.%d\n", major, minor, patch);
+----
+
+
+SEE ALSO
+--------
+linkzmq:zmq[7]
+
+AUTHOR
+------
+Martin Sustrik <sustrik at 250bpm dot com>