readvc.cpp
00001 //#include <stdio.h> 00002 #include "vobject.h" 00003 #include "vcc.h" 00004 00005 void main(int argc, char *argv[]) 00006 { 00007 VObject *t, *v; 00008 // FILE *fp; 00009 00010 //fp = fopen(argv[1], "r"); 00011 00012 v = Parse_MIME_FromFileName(argv[1]); 00013 while (v) { 00014 printVObject(stdout, v); 00015 t = v; 00016 v = nextVObjectInList(v); 00017 cleanVObject(t); 00018 } 00019 }