version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.18 2005/07/17 11:00:03 ryo_saeba Exp $"; | | * "$Id: utils.c,v 1.19 2005/10/13 07:26:00 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
const char* strrstr(const char* haystack, const char* needle){ | | const char* strrstr(const char* haystack, const char* needle){ |
const char* lastneedle; | | const char* lastneedle; |
lastneedle=NULL; | | lastneedle=NULL; |
while(haystack=strstr(haystack,needle)){ | | while((haystack=strstr(haystack,needle))!=NULL){ |
lastneedle=haystack; | | lastneedle=haystack; |
haystack++; | | haystack++; |
} | | } |