> #include <stdio.h>
> #include <FL/filename.H>
> int main() {
>    const char *dirname = "/usr";
>    dirent **dlist;
>    int total = fl_filename_list(dirname, &dlist, fl_alphasort);
>    for ( int t=0; t<total; t++ ) {
>        printf("%d) '%s'\n", t, dlist[t]->d_name);
>    }
>    //fl_filename_free_list(&dlist, total);
>    return(0);
> }

FWIW, that flies on WinXX just fine (with 1.1 and 1.3) though
hard-coding dirname to "/usr" is not portable, so I changed that to
"../" for my tests and that was fine... Though again might be a poor
choice!

Maybe trying to extract $HOME or something might be portable?



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to