Skip to main content

Name

ec_find_conf_file2 — Find a filename in the given search path and return the resulting path

Synopsis

#include "util.h"

| int **ec_find_conf_file2** ( | path, |   | |   | base, |   | |   | outstr, |   | |   | errstr); |   |

const char * <var class="pdparam">path</var>; const char * <var class="pdparam">base</var>; string * <var class="pdparam">outstr</var>; string * <var class="pdparam">errstr</var>;

Description

Find a filename in the given search path and return the resulting path.

Parameters

path

A colon-separated path to search before the system configuration path.

base

The base filename to be found.

outstr

The string holding the resulting path.

errstr

The error message, set on failure.

Return Values

On success this function returns 1; on failure it returns 0.

Threading

It is legal to call this function in any thread.

Was this page helpful?