hello all,
i hv attached herewith my program to implement a simple interactive shell in C. no matter hw hard I try, I keep getting some errors. i need help - urgently !!
proj1test7.c: In function `parseCommand':
proj1test7.c:102: warning: assignment makes pointer from integer without a cast
proj1test7.c: In function `main':
proj1test7.c:119: warning: passing arg 1 of `parsePath' from
incompatible pointer type
proj1test7.c:125: warning: passing arg 2 of `lookupPath' from
incompatible pointer type
Also, could you please let me know as to how can I compile and run a
program using Emacs? I had been trying to use putty and gcc to compile
my code, but it doesnt recognize strsep() and I am not very comfortable
using strtok in its place. But when I compile it using gcc on the Linux Whitebox, it works fine.
Also, if it does manage to get compiled, I keep getting Segmentation fault!
Please respond ASAP! Thanking you for your time in advance.
- Nix