Back to index

lightning-sunbird  0.9+nobinonly
Functions
testvcal.c File Reference
#include "icalvcal.h"
#include <stdio.h>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 40 of file testvcal.c.

{
    VObject *vcal = 0;
    icalcomponent *comp;
    char* file;

    if (argc != 2){
        file = "../../test-data/user-cal.vcf";
    } else {
        file = argv[1];
    }


    vcal = Parse_MIME_FromFileName(file);
    
    assert(vcal != 0);

    comp = icalvcal_convert(vcal);

    printf("%s\n",icalcomponent_as_ical_string(comp));
    
    return 0;
}           

Here is the call graph for this function: