library/src/utility/BP-StringFormattingSessions.cc
// Display RESULTS. Calls BP_DisplaySFSSearchResult on each result in the results
// structure.
Display RESULTS. Calls BP_DisplaySFSSearchResult on each result in the results
structure.
Display RESULTS . Calls BP_DisplaySFSSearchResult on each result in the results structure .
BP_ERROR_T BP_DisplaySFSSearchResults(P_BP_SFS_SEARCH_RESULTS results)
{
	if(!results)
		return ERR_FAILURE;
	printf("\n [+] SFS Search Results (%p)", results);
	printf("\n     session:    %p", results->session);
	printf("\n     results:    %p", results->results);
	printf("\n     results_n:  %u", results->result_n);
	printf("\n");
	size_t n = 0;
	for(; n < results->result_n; n++)
		BP_DisplaySFSSearchResult(&results->results[n]);
	printf("\n");
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DisplaySFSSearchResults ( P_BP_SFS_SEARCH_RESULTS results ) { if ( ! results ) return ERR_FAILURE ; printf ( " \n " , results ) ; printf ( " \n " , results -> session ) ; printf ( " \n " , results -> results ) ; printf ( " \n " , results -> result_n ) ; printf ( " \n " ) ; size_t n = 0 ; for ( ; n < results -> result_n ; n ++ ) BP_DisplaySFSSearchResult ( & results -> results [ n ] ) ; printf ( " \n " ) ; return ERR_SUCCESS ; }
Display RESULTS.
Display RESULTS .
// display header // walk and display each result // display trailing newline // return indicating success