prg_init()

Abstract

Initializes the Prg package.

Syntax

prg_init (argc, argv, options)
Argument Type Description
argc int number of command line arguments with which the program was invoked
argv char* pointer to an array of character strings that contain the number of arguments specified in argc, one per string.
options int Prg operation mode flags. The only currently defined value is PRGC_INIT_OPT_NONE.

Return Type

void

No return value

prg_init_funcs.h

Example

/* Initialize the Prg package before getting list of Network models. */
prg_init (argc, argv, PRGC_INIT_OPT_NONE);
list_ptr = prg_tfile_name_list_get (PrgC_Tfile_Type_Network);

Details

If you intend to use any Prg function in an external tool program, you must use this function to initialize the Prg package. The Simulation Kernel and EMA call this function automatically, so you can use Prg functions in process model or EMA code without calling it explicitly.

Purpose

To initialize the internal Prg package state so that all other Prg package functions may safely be called.

Errors

  • None

Reference

  • None

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com