2 ======================================================================
4 CREATOR: eric 26 May 2000
6 $Id: testvcal.c,v 1.4 2008-01-02 20:07:46 dothebart Exp $
9 (C) COPYRIGHT 2000 Eric Busboom
10 http://www.softwarestudio.org
12 The contents of this file are subject to the Mozilla Public License
13 Version 1.0 (the "License"); you may not use this file except in
14 compliance with the License. You may obtain a copy of the License at
15 http://www.mozilla.org/MPL/
17 Software distributed under the License is distributed on an "AS IS"
18 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
19 the License for the specific language governing rights and
20 limitations under the License.
22 The Original Code is eric. The Initial Developer of the Original
26 ======================================================================*/
28 #include <libicalvcal/icalvcal.h>
31 /* Given a vCal data file as its first argument, this program will
32 print out an equivalent iCal component.
36 ./testvcal ../../test-data/user-cal.vcf
40 int main(int argc, char* argv[])
47 file = "../../test-data/user-cal.vcf";
53 vcal = Parse_MIME_FromFileName(file);
57 comp = icalvcal_convert(vcal);
59 printf("%s\n",icalcomponent_as_ical_string(comp));