GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GET_CONFIG_STRING (3)

NAME

get_config_string - Retrieves a string from the configuration file. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

const char *get_config_string(const char *section, const char *name, const char *def);

DESCRIPTION

Retrieves a string variable from the current config file. The section name may be set to NULL to read variables from the root of the file, or used to control which set of parameters (eg. sound or joystick) you are interested in reading. Example:

   const char *lang = get_config_string("system", "language", "EN");
  

RETURN VALUE

Returns a pointer to the constant string found in the configuration file. If the named variable cannot be found, or its entry in the config file is empty, the value of ‘def’ is returned.

SEE ALSO

set_config_file(3), set_config_string(3), get_config_argv(3), get_config_float(3), get_config_hex(3), get_config_int(3), get_config_id(3), get_config_text(3), exconfig(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro GET_CONFIG_STRING (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.