prg_tfile_app_version_get()

Abstract

Returns a string giving the version of the application that generated the specified model file.

Syntax

prg_tfile_app_version_get (model_name, type, version_buf, buflen)
Argument Type Description
model_name const char * Name of the model of interest.
type PrgT_Tfile_Type Type of the model file of interest. See Table 5 for a list of the constants used to specify a model type.
version_buf char * Buffer to hold the returned version string
buflen int Length of version_buf

Return Type

PrgT_Compcode

PrgC_Compcode_Failure if the model file does not exists or does not have a recognized header block; PrgC_Compcode_Success otherwise.

prg_file_funcs.h

Details

This function returns a string giving the version of the application that generated the specified model file (specified by name and type). The version is returned in the provided string buffer, which must be at least buflen chars long.

The version string has the form <major num>.<minor num>.<letter> (for example, "18.6.0").

This function fails if the model file does not exists or does not have a recognized header block. It is possible that even a valid model file may not have header block, so failure here does not necessarily mean that the file is corrupted.

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