summaryrefslogtreecommitdiff
path: root/contrib/python/examples/ldns-buf.py
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2012-07-04 14:22:28 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2012-07-04 14:22:28 +0000
commita1ba2d1ca3a1d6c9c36a79a196dd3ccb83ede353 (patch)
treeae20718827f0ca6f869c0f7bdb777816d3bf5f3a /contrib/python/examples/ldns-buf.py
Notes
Diffstat (limited to 'contrib/python/examples/ldns-buf.py')
-rwxr-xr-xcontrib/python/examples/ldns-buf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/python/examples/ldns-buf.py b/contrib/python/examples/ldns-buf.py
new file mode 100755
index 000000000000..73d8a029ffb0
--- /dev/null
+++ b/contrib/python/examples/ldns-buf.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import ldns
+
+buf = ldns.ldns_buffer(1024)
+buf.printf("Test buffer")
+print buf
+