code: drawterm

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