code: drawterm

ref: 0646450b2051b5b34f80cdf64810474b256248be
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;
}