Starting from:

$15

Computer Systems Project 1

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.

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

More products