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 >
Wrap
C/C++ Source or Header
|
2005-06-16
|
446b
|
20 lines
/* epp8.c */
/* Include Files */
#include <stdio.h>
#include "mystring.h"
int main( void )
{
struct string str1,
str2 = { "how now brown cow", 17 };
str1.length = 0;
printf( "Length of str1 - %d\n", mystrlen( str1 ));
mystrcat( str1, str2 );
print_string( str1 );
printf( "\nLength of str1 - %d\n", mystrlen( str1 ));
return 0;
}