Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

extern what is it doing

$
0
0

Hi,

I was reading about 'extern' in C and it seems to be a way to define C style funtions in a C++ way.  I came across the following code..

extern "C" {
	icmo_setup_icmomiscp_func* icmo_setup_icmomiscp;
	icmo_deal_func* icmo_deal;
 	icmo_free_func* icmo_free;
	icmo_cashflows_func* icmo_cashflows;
  	icmo_tranchenum_func* icmo_tranchenum;
  	icmo_stats_func* icmo_stats;
 	icmo_version_chk_func* icmo_version_chk;
 	icmo_YyyyMmDd_fmt_func* icmo_YyyyMmDd_fmt;
  	icmodb_init_func* icmodb_init;
 	icmodb_cusip_to_bond_func* icmodb_cusip_to_bond;
 	icmodb_free_func* icmodb_free;
  	/* for errdie function */
  	icmo_libinit_func* icmo_libinit;
}

Does this mean icmo_setup_icmomiscp_func is the C++ function and  icmo_setup_icmomiscp is the C style function?

Any help would be greatly appreciated.

Thanks


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>