compare_tags.c

00001 #include "compare_tags.h"
00002 /*----------------------------------------------------------------------------*/
00009 /*----------------------------------------------------------------------------*/
00010 int compare_tags(
00011         cpl_frame   *   frame1,
00012         cpl_frame   *   frame2)
00013 {
00014     char            *   v1 ;
00015     char            *   v2 ;
00016 
00017     /* Test entries */
00018     if (frame1==NULL || frame2==NULL) return -1 ;
00019 
00020     /* Get the tags */
00021     if ((v1 = (char*)cpl_frame_get_tag(frame1)) == NULL) return -1 ;
00022     if ((v2 = (char*)cpl_frame_get_tag(frame2)) == NULL) return -1 ;
00023 
00024     /* Compare the tags */
00025     if (strcmp(v1, v2)) return 0 ;
00026     else return 1 ;
00027 }

Generated on Wed Oct 26 13:08:51 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001