Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
 
4
char*
5
strrchr(char *s, int c)
6
{
7
	char *r;
8
 
9
	if(c == 0)
10
		return strchr(s, 0);
11
	r = 0;
12
	while(s = strchr(s, c))
13
		r = s++;
14
	return r;
15
}