prg_env_db_write()
摘要
写出一个新的偏好设置文件。
语法
prg_env_db_write ()
| 参数 | 类型 | 说明 |
|---|---|---|
| 无参数 |
返回类型
void
无返回值。
头文件
prg_env.h
示例
/* 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 ();
详情
无
用途
该函数使用偏好设置的当前状态,以一个新文件替换现有的偏好设置文件(opnet-<rel>.prefs)。它调用的函数与应用程序以 “new_prefs_file“ 标志启动时所用的相同。
错误
- 无
参考
- 无