O'Reilly logo

Beginning Mac OS® X Programming by Drew McCormack, Michael Trent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required