00001 /* 00002 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. 00003 * See the copyright notice in the ACK home directory, in the file "Copyright". 00004 */ 00005 /* $Header$ */ 00006 00007 #include <string.h> 00008 00009 char * 00010 strrchr(register const char *s, int c) 00011 { 00012 register const char *result = NULL; 00013 00014 c = (char) c; 00015 00016 do { 00017 if (c == *s) 00018 result = s; 00019 } while (*s++ != '\0'); 00020 00021 return (char *)result; 00022 }
1.5.8