Full description of glob() function are here
Full sescription of globfree() function are here
Functions uses from time to time in the unix games/apps (for example in the ports which do i, it was used in the Pentagram, Warzone2100, SuperTuxKart, AssaultCube , Epiar and some others). So having it in SDK will help as plain developers who want linux-unix kind functions, and the same for porters who just want to port one-two games to os4.
The source of the functions done by Frank Wille in 2005 for his posix-compilant library for VBCC, and which with very small changes i adapt for our SDK Changes are related to just adding of:
To include file (to make plain C and C++ works fine with it), as well as some changes in includes and have added at top define __USE_INLINE__. No real source changes here, just some adaptation.#ifdef __cplusplus
extern "C" {
#endif
....
#ifdef __cplusplus
}
#endif
In attach you can found: all the source for those functions (for including it to any .a where most posix functions is stored) , main glob.h include (for put to SDK's includes) , and just as an example libglob.a , which can be used just for tests to see that all of this works. If any real-live examples will necessary, i will upload some small example as well.