Branko Čibej <brane@xbc.nu> writes:
> Just as an example: the box I'm typing this on -- a laptop with WinXP --
> defines 10 different "executable" extensions. I'd rather not check for
> them all.
How about a new APR function:
/**
* Find an executable file based on a path.
* @param path the initial path
* @param pool pool for allocating the return value
* @remark If an executable file for this platform exists at path,
* return its path, else return null. On platforms that have
* required extensions for executables, this means trying with
* each of those extensions appended to path in turn, until one
* names an existing executable file, which is then returned.
*/
char *apr_find_executable_from_name(const char *path,
apr_pool_t *pool);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 22:18:31 2002