/****************************************************************** * Memorial University of Newfoundland * Engineering 3891 Advanced Programming * Assignment 3 * Due: 2000.10.06 0855 * * In this assignment you are to write some functions for manipulating * C-style strings (NULL terminated character arrays). * In writing these functions you ARE NOT permitted to use the standard * string library functions (e.g., strlen, strcpy etc.). You MAY copy any * of the posted examples and use them. * * Author: Michael Bruce-Lockhart * *******************************************************************/ /* Please note, it is the CALLING routines responsibilty for both these * functions to ensure that the dest array has enough room in it to hold * the dest string (in the case of strDup) and the source and dest strings * in the case of strCat. i.e., you don't need to concern yourselves with * that issue! */ /* Copy the string in the source array to the dest array. */ void strDup(char *dest, const char *source); /* Add the source string to the end of the dest string. */ void strCat(char *dest, const char *source); /* Reverses the string IN PLACE. e.g. "the" would become "eht" and "function" would become "noitcnuf" */ void strRev(char *theString);