From 705a318216c041eefeb2d993dcecb40fc84f21aa Mon Sep 17 00:00:00 2001 From: epoch Date: Fri, 1 Aug 2014 03:42:47 +0000 Subject: ;) --- contrib/marc/marc.c | 195 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 contrib/marc/marc.c (limited to 'contrib/marc') diff --git a/contrib/marc/marc.c b/contrib/marc/marc.c new file mode 100644 index 0000000..4c736ec --- /dev/null +++ b/contrib/marc/marc.c @@ -0,0 +1,195 @@ +#include +#include +#include + +//run this on the file from a wget http://marc.ucis.ano/?get=0&version=3 + +#define M_TYPE_NULL 0 +#define M_TYPE_STRING 1 +#define M_TYPE_LIST 2 +#define M_TYPE_DICT 3 + +char *type[]={"NULL","string","list","dict"}; + +int indent; + +void pi() { + int i; + for(i=0;i