Charles.Forsyth20060303a828770d19 years agoHistory
26 lines · 371 B · C
RawDownload
#include "lib9.h"#include "logfs.h"#include "fcall.h"#include "local.h" intlogfsgn(uchar **pp, uchar *mep, char **v){	uchar *p = *pp;	int l;	if(p + BIT16SZ > mep)		return 0;	l = GBIT16(p); p += BIT16SZ;	if(p + l > mep)		return 0;	*pp = p + l;	if(l == 0) {		*v = 0;		return 1;	}	*v = (char *)(p - 1);	memmove(p - 1, p, l);	p[l - 1] = 0;	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