FreeCalypso > hg > fc-pcsc-tools
comparison libcommon/localcd.c @ 132:d991944aa5f3
fc-simtool: local cd command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Feb 2021 22:23:03 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:7305f2e63d66 | 132:d991944aa5f3 |
---|---|
1 /* | |
2 * This module implements the local cd command. | |
3 */ | |
4 | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 #include <unistd.h> | |
8 | |
9 cmd_cd(argc, argv) | |
10 char **argv; | |
11 { | |
12 int rc; | |
13 | |
14 rc = chdir(argv[1]); | |
15 if (rc < 0) | |
16 perror(argv[1]); | |
17 return rc; | |
18 } |