aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 15:01:56 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 15:01:56 -0700
commitb290fd33b973e573ffc7fc0c87be3ab431678b5f (patch)
tree4e361f950bb0934c2b80211fe848380278c1708f /path.h
parent966bbd476ff209dea8b1ca8670b50dd48854317d (diff)
Switch to more uses of wcstokenizer from wcstok()
Work towards cleaning up path_get_path
Diffstat (limited to 'path.h')
-rw-r--r--path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/path.h b/path.h
index 9bac301b..ff0150d3 100644
--- a/path.h
+++ b/path.h
@@ -30,6 +30,7 @@ bool path_get_config(wcstring &path);
\return 0 if the command can not be found, the path of the command otherwise. The result should be freed with free().
*/
wchar_t *path_get_path( const wchar_t *cmd );
+bool path_get_path( const wcstring &cmd, wcstring &output );
/** Returns whether the path can be used for an implicit cd command; if so, also returns the path by reference (if desired). This requires it to start with one of the allowed prefixes (., .., ~) and resolve to a directory. */
bool path_can_be_implicit_cd(const wcstring &path, wcstring *out_path = NULL, const wchar_t *wd = NULL);