shtk_config_load man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

SHTK_CONFIG_LOAD(3)	 BSD Library Functions Manual	   SHTK_CONFIG_LOAD(3)

NAME
     shtk_config_load — Loads a configuration file

LIBRARY
     shtk_import config

SYNOPSIS
     shtk_config_load config_file

DESCRIPTION
     The shtk_config_load function parses and loads the configuration file
     given by config_file.

     Only the configuration variables previously registered as valid with a
     call to shtk_config_init(3) will be recognized as valid variables during
     load.  Any variables defined by the configuration file but not registered
     in the shtk_config_load module will be ignored during load.

EXAMPLES
     Consider the following configuration file:

	   prefix=/usr
	   OBJDIR="${prefix}/obj"
	   SRCDIR="${prefix}/src"

     The following piece of code illustrates how to load and display the set‐
     tings of the file above:

	   shtk_config_init OBJDIR SRCDIR
	   shtk_config_load ".../path/to/the/file/above.conf"

	   echo "prefix was defined but is not available:" \
	       "$(shtk_config_get_default prefix default-value)"
	   echo "OBJDIR is $(shtk_config_get OBJDIR)"
	   echo "SRCDIR is $(shtk_config_get SRCDIR)"

ERRORS
     Errors during the processing of config_file result in the termination of
     the caller script.

SEE ALSO
     shtk(3), shtk_config(3)

HISTORY
     shtk_config_load first appeared in shtk 1.0.

BSD			       November 6, 2014				   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net