19 lines · 248 B · C
RawDownload
#include <u.h>#include <libc.h> static char *nsgetwd(char*, int); char*getwd(char *buf, int nbuf){	int n, fd; 	fd = open(".", OREAD);	if(fd < 0)		return nil;	n = fd2path(fd, buf, nbuf);	close(fd);	if(n < 0)		return nil;	return buf;}

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