Question: Write a C program called namesort. namesort takes two arguments. The first argument is the name of a file that consists of lines with names

Write a C program called "namesort". "namesort" takes two arguments. The first argument is the name of a file that consists of lines with names in the format "first-name last-name" with a single space as separator. The second argument is the name of a file to contain the namesort's output.

Namesor's job is to output just the last-name in sorted order. No duplicate suprpression is done. The program should use the system sort program to do the actual sorting using as few processes as possible.

Your code should not test extensively for error conditions or include header files, but do use enough comments to make the program understandable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!