Computer Systems Project 1 solution

$24.99

Original Work ?

Download Details:

  • Name: p1.zip
  • Type: zip
  • Size: 1.32 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (3 votes)

turnin code: cs_p1
Write a C program that takes a single command-line argument and produces
the same output as the xxd program with just that same argument.

A sample test would look like this:

./p1 some_filename

and would produce the same output as this:

xxd some_filename

Note that the C function isprint(3) could prove quite useful here.

Also note, that the language used by the textbook and this class
are C without the C++ extensions.

Use turnin to submit just the C program file.

(We will turnin archive files later in the semester.)

To test the project, I will do something like this:
rm -rf p1
rm -f *.o
cc -o p1 p1.c
./p1 filename ## I may do this for multiple filenames