envtools.h
/*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef ENVTOOLS_H
#define ENVTOOLS_H
int find_executable(const char *exe_name, const char *env_path_var, char *exe_path, int max_length);
int env_replace( const char *infile, const char *outfile );
/* Return the first temporary directory found in the following order:
override_tmp_dir argument value, CCTOOLS_TEMP env var, _CONDOR_SCRATCH_DIR
env var, TMPDIR env var, TEMP env var, /tmp
*/
const char *system_tmp_dir(const char *override_tmp_dir);
#endif