From: krand AT ican DOT net (Andrew Ellem) Newsgroups: comp.os.msdos.djgpp Subject: Re: Relative Pathnames Date: Fri, 08 May 1998 13:20:59 GMT Organization: ICAN.Net Customer Lines: 25 Message-ID: <6iv0m3$fs7$1@news2.tor.accglobal.net> References: NNTP-Posting-Host: ppp-240.m2-13.tor.ican.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Eli Zaretskii wrote: > >On Thu, 7 May 1998, Andrew Ellem wrote: >> I'm in need of a function which converts absolute pathnames (i.e. >> "d:/dj/bin/gcc.exe") to paths releative to a given directory (i.e. >> ../gcc.exe"). > >There's no such function already in the library, unless I miss something. >You will have to roll your own. > >OTOH, if you explain what exactly do you need this for, maybe there's >another solution to your original problem. Well, I writing a map/game editor, and the problem is that the maps hold the filename of the tilesets they use. They work fine on my computer, but if someone else doesn't run the program from "d:\djgpp\editor\" then it can't find the files... I can't think of a better solution so I guess I'll have to write my own... -- Andrew Ellem krand AT ican DOT net