00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00016 char *strchr (const char *s, int c) 00017 { 00018 for (; *s != '\0'; s++) 00019 { 00020 if (*s == (const char)c) 00021 { return (char *)s; } 00022 } 00023 return 0; 00024 }