added index and rindex to libroot.so

R5 ftp and telnet commands now run on Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14362 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-10-12 13:05:03 +00:00
parent 6fe225bce4
commit 42848b0907
3 changed files with 17 additions and 0 deletions

View File

@ -78,6 +78,8 @@ extern const char *strsignal(int signal);
#define bzero(buffer, length) memset((buffer), 0, (length))
extern int ffs(int i);
extern char *index(const char *s, int c);
extern char *rindex(char const *s, int c);
#ifdef __cplusplus
}

View File

@ -16,3 +16,10 @@ strchr(const char *s, int c)
return (char *)s;
}
char *
index(const char *s, int c)
{
return strchr(s, c);
}

View File

@ -22,3 +22,11 @@ strrchr(char const *s, int c)
return (char *)last;
}
char *
rindex(char const *s, int c)
{
return strrchr(s, c);
}