6.16. Exercises

  1. Modify the Grepper C program so that it can search in multiple files for a string. Assume that the filenames are given as the first arguments to the main function, and that the search string is given last. Test it by adding more than one file to the arguments of the Grepper executable in Xcode. Also modify the program so that line numbers are printed after the filename in the program output.

  2. Change MyAddressBook so that the user can request that an entry be removed from the address book.

Get Beginning Mac OS® X Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.