prg_env_db_write()

Abstract

Writes out a new preferences file.

Syntax

prg_env_db_write ()
Argument Type Description
no arguments

Return Type

void

No return value.

prg_env.h

Example

/* Set a new value for the program preference "engs_dir" */
sprintf (attr_name, "engs_dir");
prg_preference_value_set (
	PrgC_Env_Attr_String,
	ENGSC_ATTR_GROUP,
	attr_name,
	ENGSC_ATTR_DIR_DESC,
	PRGC_PREFERENCE_OPT_NONE,
	attr_value_ptr);

/* Replace the existing preferences file with a new one */
/* that includes the changed preference. */
prg_env_db_write ();

Details

None

Purpose

This function replaces the existing preferences file (opnet-<rel>.prefs) with a new one using the current state of the preferences. It calls the same function used when the application is started with the “new_prefs_file“ flag.

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