repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
ssp
/
getcwd
/
getcwd.c
blob
a59a8e116d688734e225c546087f6392c1bdd580
1
#include <sys/param.h>
2
#include <stdio.h>
3
#include <unistd.h>
4
#include <stdlib.h>
5
6
int
7
main
(
int
argc
,
char
*
argv
[])
8
{
9
char
b
[
MAXPATHLEN
];
10
size_t
len
=
atoi
(
argv
[
1
]);
11
(
void
)
getcwd
(
b
,
len
);
12
(
void
)
printf
(
"%s
\n
"
,
b
);
13
return
0
;
14
}