Difference for common/utils.c from version 1.14 to 1.15


version 1.14 version 1.15
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_utils_c =   * static char *rcsid_utils_c =
  *   "$Id: utils.c,v 1.14 2005/04/16 22:05:09 ryo_saeba Exp $";   *   "$Id: utils.c,v 1.15 2005/05/06 21:10:07 tchize Exp $";
  */   */
   
 /*  /*
Line 362
 
Line 362
  }   }
     }      }
 }  }
   
   /*
    * Strip out the media tags from a String.
    * Warning the input string will contain the result string
    */
   void strip_media_tag(char *message){
       int in_tag=0;
       char* dest;
       char* src;
       src=dest=message;
       while (*src!='\0'){
           if (*src=='['){
               in_tag=1;
           } else if (in_tag && (*src==']'))
               in_tag=0;
           else if (!in_tag){
               *dest=*src;
               dest++;
           }
           src++;
       }
       *dest='\0';
   }


Legend:
line(s) removed in v.1.14 
line(s) changed
 line(s) added in v.1.15

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:19