Your task is to write a C program that given a collection of files prints out which of those files contain the word "truffle". For example, we have 5 files: area1
, area2
, area3
, area4
and area5
. Assume area1
and area4
contain the word "truffle" then your program should output:
./truffleson area1 area4You can assume that your program will be executed in the same directory as all the area files. You can find a zipped folder with area files at this link. To unzip it run
tar -xvf forest.tar
void deleteList(List l)
that deletes a linked list using recursion. You can find all necessary files at this link.
$ give cs1917 lab12 truffleson.c list.c