henesyinit from p9f0ed2a895 years agoHistory
23 lines · 296 B · C
RawDownload
#include <u.h>#include <libc.h>#include <auth.h>#include "authsrv.h" intreadarg(int fd, char *arg, int len){	char buf[1];	int i; 	i = 0;	for(;;){		if(read(fd, buf, 1) != 1)			return -1;		if(i < len - 1)			arg[i++] = *buf;		if(*buf == '\0'){			arg[i] = '\0';			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