op_prg_odb_prodiag_args()
Abstract
Returns a list of string arguments passed to ODB with the “proldiag“ command.
Syntax
op_prg_odb_prodiag_args ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
PrgT_List *
list of strings
Example
PrgT_List * arg_list;
char msg[100];
int i, n;
arg_list = op_prg_odb_prodiag_args();
n = prg_list_size(arg_list);
for (i = 0; i < n; i++)
{
const char * arg = (const char *)prg_list_access(arg_list, i);
sprintf(msg, "arg #%d", i + 1);
op_sim_message(msg, arg);
}
Details
When used with an optimized simulation kernel, this KP does nothing and the return value is always NULL.
Purpose
Provides a way to pass arguments to the diagnostic block when a program is executing in debug mode.
Errors
- No errors are trapped.
Reference
- None.