[SOLVED] CSCI3240 Computer Systems Project 1

20.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon p2-1.zip (3.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

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

  • p2-1.zip