CSCI3240 Computer Systems Project 1 Solved

20.00 $

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

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

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