From dc5fa8454ca1f01fa701c18a21e12f2dd552d46d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 17 May 2002 21:17:05 +0000 Subject: Fl_Preferences: fixed delete/free confusion, updated docu and sample on buffer size issue (buffer needs to allow for additional byte for trailing zero) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Preferences.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'documentation/Fl_Preferences.html') diff --git a/documentation/Fl_Preferences.html b/documentation/Fl_Preferences.html index b5a30623c..88dd21ace 100644 --- a/documentation/Fl_Preferences.html +++ b/documentation/Fl_Preferences.html @@ -139,7 +139,7 @@ int get(const char *entry, int &value, int defaultValue)
int get(const char *entry, float &value, float defaultValue)
int get(const char *entry, double &value, double defaultValue )
int get(const char *entry, char *&text, const char *defaultValue)
-int get(const char *entry, char *text, const char *defaultValue, int maxSize)
+int get(const char *entry, char *text, const char *defaultValue, int maxLength)
int get(const char *entry, void *&data, const void *defaultValue, int defaultSize)
int get(const char *entry, void *data, const void *defaultValue, int defaultSize, int maxSize) @@ -149,6 +149,7 @@ supplied. The return value indicates if the value was available (non-zero) or the default was used (0). If the 'char *&text' or 'void *&data' form is used, the resulting data must be freed with 'free(value)'. +

'maxLength' is the maximum length of text that will be read. The text buffer must allow for one additional byte for a trailling zero.

const char *Fl_Preferences::group(int ix)

-- cgit v1.2.3