From fca59bea770346cf1c1f9b0e00cb48a61b44a8f3 Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@gnumonks.org>
Date: Sun, 25 Oct 2015 21:00:20 +0100
Subject: import of old now defunct presentation slides svn repo

---
 .../OLS2005/EXAMPLE/complexCode/example-c.tex      | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/example-c.tex

(limited to '2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/example-c.tex')

diff --git a/2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/example-c.tex b/2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/example-c.tex
new file mode 100644
index 0000000..2f8bf0d
--- /dev/null
+++ b/2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/example-c.tex
@@ -0,0 +1,22 @@
+\begin{cprog}
+typedef struct QuadTree {
+  double Data;
+  struct QuadTree 
+     *Children[4];
+} QT;
+
+void Sum3rdChildren(QT *T,
+           double *Result) {
+  double Ret;
+  if (T == 0) { Ret = 0;
+  } else {
+    QT *Child3 =
+      T[0].Children[3];
+    double V;
+    Sum3rdChildren(Child3, 
+                   &V);
+    Ret = V + T[0].Data;
+  }
+  *Result = Ret;
+}
+\end{cprog} 
-- 
cgit v1.2.3

