README 1.3 KB

1234567891011121314151617181920212223242526
  1. This assignment will have you work with strings and pointers. We ask
  2. you to implement a number of string manipulation functions. Many of
  3. these functions are already available in the C standard library
  4. (string.h); here we will create our own versions of these functions.
  5. You are obviously NOT allowed to use the existing versions in your
  6. implementing. Instead, you must implement all the code yourself.
  7. C uses an array of characters for storing a string. This array must
  8. have an element that stores the special character '\0' as the end of
  9. the string. The '\0' character *terminates* the string.
  10. Please see the files pa02.h and answer02.c for the function prototypes
  11. you will be asked to write. Fill in answer02.c with your code and
  12. submit only answer02.c through Blackboard.
  13. While string management often requires you to manage memory as well,
  14. this is not necessary for the functions we ask you write here. You
  15. should not be required to allocate memory, not even for temporary
  16. storage. If you find yourself using malloc(), strdup(), and/or
  17. free(), you are not solving this problem in the correct way. You will
  18. lose points if you allocate or release memory.
  19. NOTE:
  20. The Makefile is set up test help you compile and test your code.
  21. Type "make help" for a list of options.