33 lines · 521 B · C
RawDownload
/* Copyright (c) 2004 Google Inc.; see LICENSE */#include <stdarg.h>#include <string.h>#include "plan9.h"#include "fmt.h"#include "fmtdef.h" /* * Absorb output without using resources. */static Rune nullbuf[32]; static int__fmtnullflush(Fmt *f){	f->to = nullbuf;	f->nfmt = 0;	return 0;} intfmtnullinit(Fmt *f){	memset(f, 0, sizeof *f);	f->runes = 1;	f->start = nullbuf;	f->to = nullbuf;	f->stop = nullbuf+nelem(nullbuf);	f->flush = __fmtnullflush;	fmtlocaleinit(f, nil, nil, nil);	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