From ae0a956f2e7ad36f5aab55aa030d6a0d9a82d97b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 2 May 2002 14:31:10 +0000 Subject: Add sort function as optional argument to Fl_File_Browser::load(). Add docos for sort functions and changes to fl_filename_list() and Fl_File_Browser::load(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/functions.html | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'documentation/functions.html') diff --git a/documentation/functions.html b/documentation/functions.html index 24d42a23d..f35a31fbe 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -579,7 +579,7 @@ int fl_filename_isdir(const char *f);

Prototype

Description

@@ -595,9 +595,37 @@ pointer to the array is returned in *list. The number of entries is given as a return value. If there is an error reading the directory a number less than zero is returned, and errno has the reason; errno does not work -under WIN32. The files are sorted in "alphanumeric" -order, where an attempt is made to put unpadded numbers in -consecutive order. +under WIN32. + +

The sort argument specifies a sort function to be used +when on the array of filenames. The following standard sort functions +are provided with FLTK: + +

You can free the returned list of files with the following code: -- cgit v1.2.3