Logo Search packages:      
Sourcecode: libical version File versions  Download package

void icalspanlist_dump ( icalspanlist *  sl  ) 

(Debug) print out spanlist to stdout.

Parameters:
sl A valid icalspanlist.

Definition at line 253 of file icalspanlist.c.

References icaltime_span::end, icaltime_span::is_busy, and icaltime_span::start.

                                        {
     int i = 0;
     pvl_elem itr;

     for( itr = pvl_head(sl->spans);
       itr != 0;
       itr = pvl_next(itr))
    {
      struct icaltime_span *s = (struct icaltime_span*)pvl_data(itr);
      
      printf("#%02d %d start: %s",++i,s->is_busy,ctime(&s->start));
      printf("      end  : %s",ctime(&s->end));

    }
}


Generated by  Doxygen 1.6.0   Back to index