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


version 1.15 version 1.16
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_utils_c =   * static char *rcsid_utils_c =
  *   "$Id: utils.c,v 1.15 2005/05/06 21:10:07 tchize Exp $";   *   "$Id: utils.c,v 1.16 2005/05/29 15:37:53 tchize Exp $";
  */   */
   
 /*  /*
Line 385
 
Line 385
     }      }
     *dest='\0';      *dest='\0';
 }  }
   
   char* strrstr(const char* haystack, const char* needle){
       const char* lastneedle;
       lastneedle=NULL;
       while(haystack=strstr(haystack,needle)){
           lastneedle=haystack;
           haystack++;
       }
       return lastneedle;
          
   }
   #define EOL_SIZE (sizeof("\n")-1)
   void strip_endline(char* buf){
       if (strlen(buf)<sizeof("\n")){
           return; 
       }
       if (!strcmp(buf+strlen(buf)-EOL_SIZE,"\n"))
           buf[strlen(buf)-EOL_SIZE]='\0';   
   }
   


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

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