Docstoc

project

Document Sample
project Powered By Docstoc
					                                 C Programming
                                        Project
Description
Write console versions of the following UNIX commands:
 cat
 od
 fold

Functional Requirements
The descriptions of how the commands should work are found at:
Command Description (a.k.a. man pages)
cat            http://www.freebsd.org/cgi/man.cgi?query=cat&sektion=1&apropos=0&m
               anpath=FreeBSD+6.0-RELEASE+and+Ports
od             http://www.freebsd.org/cgi/man.cgi?query=od&apropos=0&sektion=1&m
               anpath=FreeBSD+6.0-RELEASE+and+Ports&format=html
fold           http://www.freebsd.org/cgi/man.cgi?query=fold&sektion=1&apropos=0&
               manpath=FreeBSD+6.0-RELEASE+and+Ports
You should be aware that none of these programs can take any input from the user once
running (i.e. all of the information that the program needs is on the command line) except
as explicitly noted in the man pages.

Restrictions
   Do not use global variables or goto. You also should not use scanf() but I really can't
    see why you would do so anyway.
   For the cat command, you do not have to support sockets or the -u option.

Other Requirements
   Call the executables mycat.exe, myod.exe, and myfold.exe.
   Call the files that contain your main() functions for each program mycat.c, myod.c,
    and myfold.c.
     You can create other source files if you wish.
   Put all required files in the project subfolder of your shared folder in the following
    organization:
     Put a copy of all executables in the project subfolder.
     Put all files related to creating mycat.exe into the project\mycat subfolder. This
        includes project files.
     Put all files related to creating myod.exe into the project\myod subfolder. This
        includes project files.
     Put all files related to creating myfold.exe into the project\myfold subfolder. This
        includes project files.
   Hand in all source code, all project files, and the executables.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:6
posted:10/22/2011
language:English
pages:1