code: drawterm

ref: 4c9f5697837697b995aef5088a3d8e18fc956222
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;
}