summaryrefslogtreecommitdiffstats
path: root/šola/p2/dn/naloga1.c
diff options
context:
space:
mode:
Diffstat (limited to 'šola/p2/dn/naloga1.c')
-rw-r--r--šola/p2/dn/naloga1.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/šola/p2/dn/naloga1.c b/šola/p2/dn/naloga1.c
new file mode 100644
index 0000000..7938950
--- /dev/null
+++ b/šola/p2/dn/naloga1.c
@@ -0,0 +1,34 @@
+/*
+
+Prevajanje in poganjanje skupaj z datoteko test01.c:
+
+gcc -D=test test01.c naloga1.c
+./a.out
+
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "naloga1.h"
+
+int * poisci (int * t, int * dolzina, int ** konec) {
+ *konec = t;
+ while (**konec)
+ (*konec)++;
+ (*konec)--;
+ while (*t)
+ t--;
+ t++;
+ *dolzina = *konec - t + 1;
+ return t;
+}
+
+#ifndef test
+
+int main () {
+ // koda za ro"cno testiranje (po "zelji)
+ return 0;
+}
+
+#endif