From 22953ccb02e273e251b3dc6cf7ac3324f03fb85e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 19 Dec 2010 21:39:01 +0000 Subject: Added fl_filename_relative which uses an additional parameter instead of the current working directory. Now we can find a relative path without changing the cwd. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/filename.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL') diff --git a/FL/filename.H b/FL/filename.H index b9ca4f1be..1209a8771 100644 --- a/FL/filename.H +++ b/FL/filename.H @@ -63,6 +63,7 @@ FL_EXPORT char *fl_filename_setext(char *to, int tolen, const char *ext); FL_EXPORT int fl_filename_expand(char *to, int tolen, const char *from); FL_EXPORT int fl_filename_absolute(char *to, int tolen, const char *from); FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from); +FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from, const char *cwd); FL_EXPORT int fl_filename_match(const char *name, const char *pattern); FL_EXPORT int fl_filename_isdir(const char *name); -- cgit v1.2.3