projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
893ed1e15cd6f338f4d012ab36a83997dc4b4a18
[oweals/busybox.git]
/
coreutils
/
pwd.c
1
#include "internal.h"
2
#include <stdio.h>
3
4
const char pwd_usage[] = "Print the current directory.\n";
5
6
extern int
7
pwd_main(int argc, char * * argv)
8
{
9
char buf[1024];
10
11
if ( getcwd(buf, sizeof(buf)) == NULL ) {
12
perror("get working directory");
13
exit( FALSE);
14
}
15
16
printf("%s\n", buf);
17
exit( TRUE);
18
}