Sigrid Solveig Haflínudóttirpc(1) port67e8be84 years agoHistory
25 lines · 328 B · C
RawDownload
#include <u.h>#include <libc.h>#include "fmtdef.h" intfmtrune(Fmt *f, int r){	Rune *rt;	char *t;	int n; 	if(f->runes){		rt = (Rune*)f->to;		FMTRCHAR(f, rt, f->stop, r);		f->to = rt;		n = 1;	}else{		t = (char*)f->to;		FMTRUNE(f, t, f->stop, r);		n = t - (char*)f->to;		f->to = t;	}	f->nfmt += n;	return 0;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t