ns-allinone-2.35/olsr/OLSR_printer.cc
void
OLSR_printer::print_olsr_tc(FILE* out, OLSR_tc& tc) {
	fprintf(out, "\tansn = %d\n\treserved = %d\n",
		tc.ansn(),
		tc.reserved());
	printf("\tansn = %d\n\treserved = %d\n",
		tc.ansn(),
		tc.reserved());
	for (int i = 0; i < tc.count; i++){
		fprintf(out, "\taddr = %d\n", tc.nb_main_addr(i));
		printf("\taddr = %d\n", tc.nb_main_addr(i));}
}
///
/// \brief Prints a given %OLSR TC message into a given file.
/// \warning This function is actually not used.
/// \param out	File where the %OLSR TC message is going to be written.
/// \param tc	%OLSR TC message to be written.
///
\brief Prints a given %OLSR TC message into a given file.
\warning This function is actually not used.
\param out     File where the %OLSR TC message is going to be written.
\param tc      %OLSR TC message to be written.
\ brief Prints a given %OLSR TC message into a given file . \ warning This function is actually not used . \ param out File where the %OLSR TC message is going to be written . \ param tc %OLSR TC message to be written .
void
OLSR_printer::print_olsr_tc(FILE* out, OLSR_tc& tc) {
	fprintf(out, "\tansn = %d\n\treserved = %d\n",
		tc.ansn(),
		tc.reserved());
	printf("\tansn = %d\n\treserved = %d\n",
		tc.ansn(),
		tc.reserved());
	for (int i = 0; i < tc.count; i++){
		fprintf(out, "\taddr = %d\n", tc.nb_main_addr(i));
		printf("\taddr = %d\n", tc.nb_main_addr(i));}
}
void OLSR_printer :: print_olsr_tc ( FILE * out , OLSR_tc & tc ) { fprintf ( out , " \t \n \t \n " , tc . ansn ( ) , tc . reserved ( ) ) ; printf ( " \t \n \t \n " , tc . ansn ( ) , tc . reserved ( ) ) ; for ( int i = 0 ; i < tc . count ; i ++ ) { fprintf ( out , " \t \n " , tc . nb_main_addr ( i ) ) ; printf ( " \t \n " , tc . nb_main_addr ( i ) ) ; } }
\brief Prints a given %OLSR TC message into a given file.
\ brief Prints a given %OLSR TC message into a given file .