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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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