20 lines · 330 B · C
RawDownload
#include <inttypes.h>#include <u.h>#include <libc.h>#include "fmtdef.h" /* * generic routine for flushing a formatting buffer * to a file descriptor */int__fmtFdFlush(Fmt *f){	int n; 	n = (char*)f->to - (char*)f->start;	if(n && write((uintptr_t)f->farg, f->start, n) != n)		return 0;	f->to = f->start;	return 1;}

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