CS 2040 Week 10 Exercise

Download an unzip week10.zip and complete sstring.c. This is an implementation of a string that can be up to 10 characters. The string is not null-terminated; that is, there is no character 0 at the end of the string (in the text field in String10). The key thing is to add calls to malloc and free to properly allocate and deallocate String10 values. Note that you cannot add libraries; in particular, you cannot use string.h functions like strlen or strncpy.

When test.c runs without errors, submit your code to esubmit. Your code will be graded for correctness only, however your code must compile with no warnings to receive full credit. You may work with other students on this exercise.