Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3403 | Rev 3448 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include "cmds.h" |
37 | #include "cmds.h" |
38 | #include "pwd.h" |
38 | #include "pwd.h" |
39 | 39 | ||
40 | static char * cmdname = "pwd"; |
40 | static char * cmdname = "pwd"; |
41 | 41 | ||
42 | void * help_cmd_pwd(unsigned int level) |
42 | void help_cmd_pwd(unsigned int level) |
43 | { |
43 | { |
44 | printf("`%s' prints your current working directory.\n", cmdname); |
44 | printf("`%s' prints your current working directory.\n", cmdname); |
45 | return CMD_VOID; |
45 | return; |
46 | } |
46 | } |
47 | 47 | ||
48 | int * cmd_pwd(char *argv[]) |
48 | int cmd_pwd(char *argv[]) |
49 | { |
49 | { |
50 | char *buff; |
50 | char *buff; |
51 | 51 | ||
52 | buff = (char *) malloc(PATH_MAX); |
52 | buff = (char *) malloc(PATH_MAX); |
53 | if (NULL == buff) { |
53 | if (NULL == buff) { |