code: drawterm

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