Jeff Sickelimport libbiocd2d62814 years agoHistory
27 lines · 369 B · C
RawDownload
#include	<u.h>#include	<libc.h>#undef long#include	<bio.h> vlongBoffset(Biobuf *bp){	vlong n; 	switch(bp->state) {	default:		fprint(2, "Boffset: unknown state %d\n", bp->state);		n = Beof;		break; 	case Bracteof:	case Bractive:		n = bp->offset + bp->icount;		break; 	case Bwactive:		n = bp->offset + (bp->bsize + bp->ocount);		break;	}	return n;}

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