Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 6433
-
 
1
#include 
-
 
2
 
1
char* strrchr(const char* s,int c)
3
char* strrchr(const char* s,int c)
2
{
4
{
3
	char* res;
5
	char* res;
4
	res=(char*)0;
6
	res=(char*)0;
5
	while (1)
7
	while (1)
6
	{
8
	{
7
		if (*s==(char)c)
9
		if (*s==(char)c)
8
			res=(char*)s;
10
			res=(char*)s;
9
		if (*s=='\0')
11
		if (*s=='\0')
10
			break;
12
			break;
11
		s++;
13
		s++;
12
	}
14
	}
13
	return res;
15
	return res;
14
}
16
}