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.
Header
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