From 6124c616b61f9e5d4a28a5c71df2882eaada57c7 Mon Sep 17 00:00:00 2001 From: robijn Date: Sun, 2 Dec 2001 17:26:04 +0000 Subject: [PATCH] Added clearer comment for use of config_get_string. --- server/configfile.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/configfile.h b/server/configfile.h index 685086a..9fd52f9 100644 --- a/server/configfile.h +++ b/server/configfile.h @@ -47,8 +47,9 @@ double config_get_float( char *sectionname, char *keyname, char *config_get_string( char * sectionname, char * keyname, int skip, char * default_value ); // Returns a pointer to the string associated with the specified key. -// The string should never be modified, but for example immediately be -// copied. +// The string should never be modified, and used only short-term. You can +// for example scan it or copy it. In successive calls this function can +// re-use the data space ! int config_has_section( char *sectionname ); // Checks if a specified section exists.