code: drawterm

ref: 75c9d51d40bda19e01032c0aaae242d87e5cd13f
dir: /libc/runestrrchr.c/

View raw version
#include <u.h>
#include <libc.h>

Rune*
runestrrchr(Rune *s, Rune c)
{
	Rune *r;

	if(c == 0)
		return runestrchr(s, 0);
	r = 0;
	while(s = runestrchr(s, c))
		r = s++;
	return r;
}