for the first one please go to below address.
[login to view URL]~csc_tjm/fall2000/cs431/[login to view URL]
Hint : (A Shell Program)
For your shell program you don't have to worry about parsing the set path statement from the command line nor do you have to read it from the .login file. You only need to read it from the global environment variable list. There is a C function that will help you do this.
U have to do it as simple as possible and commented it so I can understand it
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
see url detail