delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/07/15:01:38

From: krand AT ican DOT net (Andrew Ellem)
Newsgroups: comp.os.msdos.djgpp
Subject: Relative Pathnames
Date: Thu, 07 May 1998 18:40:41 GMT
Organization: ICAN.Net Customer
Lines: 14
Message-ID: <6isv1d$5ep$1@news2.tor.accglobal.net>
Reply-To: krand AT ican DOT net
NNTP-Posting-Host: ppp-199.m2-6.tor.ican.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I hope this isn't too off-topic...

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").  I've looked through both the libc info files, and the faq, 
but the closest thing I found was _fixpath, which seems to do the
reverse of what I'm looking for...

So is there any available routines to convert absolute paths to relative ones? 
Or do I have to write my own?

--
Andrew Ellem
krand AT ican DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019