/* 
**	Name 
**		example_3.c
**	
**	Description
**		This program uses a function to print "hello other world" 
**              5 times.
** 
**	Parameters
**		None 
** 
**	Return Value 
**		None
**
**	Side Affects 
**		None 
**		 
**	Modification History 
**		Date		Who	What
**		---------	-----	------------------------------------
**		01-Jan-93	cfp	Created
**		01-Jan-94	cfp	Cleaned-up
**		10-Jan-99	cfp	Resurected. 
*/
#include <stdio.h>

void display(char *, int);

main()
{
	char  message[25];
	int   length_of_string;

	strcpy(message, "hello other world");
	length_of_string = strlen (message);
	display(message, length_of_string);
	return(0);
}

void display(char * print_string, int repeat_count) 
{
	int   loop_counter;

	for (loop_counter = 0; loop_counter < repeat_count; loop_counter++) 
	{
		printf("%c ", print_string[loop_counter]);
		printf ("loop_counter: %d, ", loop_counter);
		printf ("remaining: %d\n", (repeat_count-1) -
			loop_counter);
	}
	
	return;
}


