home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _DISK_ / ch7 / epp8.c < prev    next >
C/C++ Source or Header  |  2005-06-16  |  446b  |  20 lines

  1. /*       epp8.c            */
  2.  
  3. /* Include Files */
  4. #include <stdio.h> 
  5. #include "mystring.h" 
  6.                    
  7. int main( void )
  8. {
  9.      struct string   str1, 
  10.                      str2 = { "how now brown cow", 17 };
  11.     
  12.      str1.length = 0;
  13.      printf( "Length of str1 - %d\n", mystrlen( str1 ));
  14.     
  15.      mystrcat( str1, str2 );
  16.      print_string( str1 );
  17.      printf( "\nLength of str1 - %d\n", mystrlen( str1 ));
  18.      return 0;
  19. }
  20.