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

int icaltime_span_contains ( icaltime_span s,
icaltime_span container 

Returns true if the span is totally within the containing span.

s The span to test for.
container The span to test against.
boolean value.

Definition at line 1186 of file icaltime.c.

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


  if ((s->start >= container->start && s->start < container->end) &&
      (s->end   <= container->end   && s->end   > container->start))
    return 1;
  return 0;

Generated by  Doxygen 1.6.0   Back to index