source:
bootcd/isolinux/syslinux-6.03/core/fs/getcwd.c
Last change on this file was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 258 bytes |
Line | |
---|---|
1 | #include <string.h> |
2 | #include "fs.h" |
3 | |
4 | __export char *core_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 | } |
Note: See TracBrowser
for help on using the repository browser.