str_string_count_c

	count.i4.v = str_string_count_c(string.i1a.r, length.i4.v,
					match_string.i1a.r, match_length.i4.v,
					case_sensitive.i4.v, wildcard.i1.v,
					ignore_spaces.i4.v)

	This routine will return the number of occurrences of a substring
	in a string.

	string		string to search
	length		length of string to search (a value of zero
			will result in a search up to a null terminator)
	match_string	string to be searched for
	match_length	length of string to be searched for  (If this argument
			has a value of zero, the routine will determine
			the length of the string.)
	case_sensitive	case sensitivity flag
			(TRUE -> case sensitive search,
			 FALSE -> case insensitive search)
	wildcard	wildcard character which will match any
			single character
			(STR_NO_WILDCARD -> don't use any wildcards,
			 otherwise -> desired wildcard character)
	ignore_spaces	white space handling flag
			(TRUE -> ignore embedded white spaces,
			 FALSE -> treat white spaces like any other character)

	This function returns status values as follows:

	CLIB_INVARG		invalid argument passed
	CLIB_MEMFAIL		dynamic memory allocation failure
	otherwise		number of occurrences of specified substring

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	str_character_count_c, str_find_string_c, str_find_last_string_c,
	str_num_nonblank_c, str_find_character_c, str_find_character_set_c,
	fndchr(_c), str_find_first_c, str_replace_char_c,
	str_replace_char_set_c, str_replace_string_c,
	str_remove_char_set_c, fndfst, strstr, strstr_nocase,
	str_get_first_c, str_find_not_in_character_set_c

	C/C++ usage:

	static const char	string[] = "This string is a test string";
	static const char	match_string[] = "str";
	char	wildcard = STR_NO_WILDCARD;
	int	count;
	int	length = 0;
	int	match_length = 0;
	int	case_sensitive = FALSE;
	int	ignore_spaces = TRUE;

	count = str_string_count_c(string,length,match_string,match_length,
				   case_sensitive,wildcard,ignore_spaces);