diff options
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index ea4d5af509f..5e46d0e98b2 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -811,3 +811,15 @@ bool core_options::validate_and_set_data(core_options::entry &curentry, const ch curentry.set_value(data, priority); return true; } + +//------------------------------------------------- +// options_count - take number of existing +// number of options in structure +//------------------------------------------------- + +int core_options::options_count() +{ + int number = 0; + for (entry *curentry = m_entrylist; curentry != NULL; curentry = curentry->next()) number++; + return number; +}
\ No newline at end of file |