diff options
Diffstat (limited to 'sys/libc/cfchdir.c')
-rw-r--r-- | sys/libc/cfchdir.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/libc/cfchdir.c b/sys/libc/cfchdir.c new file mode 100644 index 00000000..2dc708da --- /dev/null +++ b/sys/libc/cfchdir.c @@ -0,0 +1,19 @@ +/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. +*/ + +#define import_spp +#define import_libc +#define import_xnames +#include <iraf.h> + + +/* C_FCHDIR -- Change directory. +*/ +int +c_fchdir (char *newdir) +{ + iferr (FCHDIR (c_sppstr (newdir))) + return (ERR); + else + return (OK); +} |