about chdir()
I just found out cd is embedded with the shell, not an actually command
I wrote the following code in my shell program, but it returns me to tell me the dir doesn't exist, what did I do wrong Code:
char *pcd, *cd; |
Try trimming spaces off the front of the directory name.
|
I got it, the problem isn't the white space, i think it is the '\n' char, it's giving a lot of troubles
|
From other things you've posted, it seems as if you're writing a shell, or a shell go-between - you might want to look at the strtok() function to help with things like this.
|
All times are GMT -5. The time now is 05:42 PM. |