ch 10/e9.c
//Function to extract and store a sub-string from a string

Function to extract and store a sub-string from a string
Function to extract and store a sub - string from a string
void substring ( char source [], int start, int count, char result [] )
	{
		int i = 0 ;
		while ( i < count && source [start] != '\0' )
			{
				result [i] = source [start] ;
				start++ ;
				i++ ;	
			}
		result [i] = '\0' ; 	
	}
void substring ( char source [ ] , int start , int count , char result [ ] ) { int i = 0 ; while ( i < count && source [ start ] != ' \0 ' ) { result [ i ] = source [ start ] ; start ++ ; i ++ ; } result [ i ] = ' \0 ' ; }
Function to extract and store a sub-string from a string
Function to extract and store a sub - string from a string
//Appending null char at the end of the sub-string
