CSSE 120 -- Intro. to Software Development

Homework 29

  1. Don't forget to refer to the Python vs C comparison document. You may find this helpful as you try to do things in C that you already know how to do in Python. Feel free to suggest things that we might add to this document.
  2. There is no Angel quiz for the next session.
  3. You must do this assignment using Eclipse and the AllocatingStrings project that you checked out from your individual SVN repository in class.

    Be sure that you checked out that project into your Eclipse C workspace, not your Python workspace.

  4. In the source file allocating-strings-functions.c, edit the initial comment to include your name and today's date.
  5. READ THE NEXT STEP VERY CAREFULLY!
  6. Stubs for all of the functions (and complete implementations of some of them) have been provided for you in allocating-strings-functions.c. The file also contains short specifications of each function as comments. Be sure to study the code for the implementation of the provided functions in allocating-strings-functions.c. They are there as hints for the ones you are responsible for implementing.

    We've provided all of the test code in the file allocating-strings-main.c. You may wish to comment out calls to the test functions to focus your work, but should uncomment the calls before submitting the final version of your work.

    You are to complete the definitions of all of the functions below, inspired by those in the Python String class. You will probably want to use the functions declared in the <string.h> header file in your solution. Please notice the file EXPECTED_OUTPUT.txt in the project. Be sure to commit to your repository as you finish each function; that will help us to award credit for each function that you finish.

    The following functions have already been implemented.
    You are responsible for implementing the following functions. We suggest that you implement them in the given order.
  7. Commit your work to your SVN repository after completing each function . In the file allocating-strings-main.c, uncomment the calls to the test functions before you make your final submission.

  8. Web Line:  Our nice tongue twisters were found on this site http://www.geocities.com/Athens/8136/tonguetwisters.html