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
Header
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