hasExternalTool

fnbool hasExternalTool(string toolName)

Check if an external tool is available in the system PATH.

Parameters

toolNameThe name of the tool to check (e.g., "readelf", "nm").

Returns

true if the tool is found and executable, false otherwise.

Examples

if (hasExternalTool("readelf")) {
   // Can safely use readelf in tests
}