ospfh_main.c
来自「实现禁位自动排列在禁位中具体实现了此方法所以这是一个创新很有应用价值在VC平台上」· C语言 代码 · 共 28 行
C
28 行
#include "ospfh.h"
#include "ospfh_patch.h"
void main()
{
struct thread thread;
struct thread_master *master;
struct ospf *ospf_top;
char * config_file; //path to the configuration file
config_file="ospf_config.txt";
/*Initiate master thread*/
master = thread_master_create ();
/* Initiate the ospf data structure */
ospf_top = ospfh_init(master);
ospf_read_config (config_file, ospf_top);
ospfh_init_continue(ospf_top);
ospfh_feed_up_receive(ospf_top);
/* Fetch next active thread. */
while (thread_fetch (master, &thread))
thread_call (&thread);
exit(0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?