repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git]
/
core
/
fs
/
getcwd.c
blob
a7b6c7a9c82504ece7e86ce1d511dd4f6e688485
1
#include <string.h>
2
#include
"fs.h"
3
4
char
*
getcwd
(
char
*
buf
,
size_t
size
)
5
{
6
char
*
ret
=
NULL
;
7
8
if
((
buf
!=
NULL
) && (
strlen
(
this_fs
->
cwd_name
) <
size
)) {
9
strcpy
(
buf
,
this_fs
->
cwd_name
);
10
ret
=
buf
;
11
}
12
return
ret
;
13
}