aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/C/yytest.c
diff options
context:
space:
mode:
authorMatej Cepl <mcepl@redhat.com>2008-02-26 17:27:08 +0100
committerMatej Cepl <mcepl@redhat.com>2008-02-26 17:27:08 +0100
commitc50ce75f2e06b6b8abe49e34775d343b74f7e8cd (patch)
tree14c314e39296b0c3abe781e4dac194949e220136 /wlp/C/yytest.c
downloadpygn-c50ce75f2e06b6b8abe49e34775d343b74f7e8cd.tar.gz
The original upstream from Debian orig.tar.gz tarball.0.9.7
Diffstat (limited to 'wlp/C/yytest.c')
-rw-r--r--wlp/C/yytest.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/wlp/C/yytest.c b/wlp/C/yytest.c
new file mode 100644
index 0000000..74c6fe7
--- /dev/null
+++ b/wlp/C/yytest.c
@@ -0,0 +1,25 @@
+#include <stdio.h>
+
+#include "structs.h"
+#include "macro.h"
+
+
+
+int parse(FILE *file);
+
+struct wlp_list_t *list;
+
+int main(int argc,char **argv) {
+ struct wlp_node_t *tmp;
+ int count;
+
+ parse(NULL);
+
+ if(list)
+ for(tmp = list->head, count=0;
+ tmp != list->head || count == 0;
+ tmp = tmp->next, count++)
+ printf("FOUND(%d) '%s' '%s' '%s'\n",count,tmp->left,tmp->right,tmp->owner);
+
+ return(0);
+}