CSE 271: Programming Assignment 1

Assigned: 21 January
Due: 27 January

Abstract

Write a C program that reads every character of a file and keeps track of each type of character. When complete, it outputs the number of letters, the number of digits, and the number of other characters read.

Details

Use the standard C library functions open(2), read(2), and close(2) much like we did with mycat. A properly implemented program will work as follows:

Submission Requirements

  1. As usual, the program must be named p1.c and must reside in the cse271.131/p1 subdirectory.
  2. Create and use an appropriate Makefile that will compile your program using make, and will clean the directory with make clean.
  3. Your name and date must be in the comment section.
  4. Do a touch DONE when the program is ready to be collected.

Last revised: 19 January 2013.