Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git] / core / fs / getcwd.c
bloba7b6c7a9c82504ece7e86ce1d511dd4f6e688485
1 #include <string.h>
2 #include "fs.h"
4 char *getcwd(char *buf, size_t size)
6 char *ret = NULL;
8 if((buf != NULL) && (strlen(this_fs->cwd_name) < size)) {
9 strcpy(buf, this_fs->cwd_name);
10 ret = buf;
12 return ret;