/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by hauk, Thu Sep 12 16:46:07 2002 UTC revision 1.34 by hauk, Sun Sep 15 15:50:17 2002 UTC
# Line 119  int is_strdefined(char *p) { Line 119  int is_strdefined(char *p) {
119   */   */
120  char *stripfilename(char* path) {  char *stripfilename(char* path) {
121        
122    char *fname= rindex(path, '/');    char *fname= strrchr(path, '/');
123        
124    return (fname ? ++fname : path);    return (fname ? ++fname : path);
125        

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26