delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Rugxulo <rugxulo AT gmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: FLTK port |
Date: | Mon, 29 Aug 2011 14:36:59 -0700 (PDT) |
Organization: | http://groups.google.com |
Lines: | 20 |
Message-ID: | <2a139156-6c1d-4de9-9383-923d705e7707@fv14g2000vbb.googlegroups.com> |
References: | <1047e21a-1d65-41c9-81f8-81b87adce27a AT en1g2000vbb DOT googlegroups DOT com> |
<c3ac2610-1b7a-456a-8e37-680b495e8b13 AT v7g2000vbk DOT googlegroups DOT com> | |
<5afb5e6f-15e3-41fd-a2fc-62407c833543 AT d25g2000yqh DOT googlegroups DOT com> | |
<3125f3c0-bbaa-4c9a-9195-1936845c4a14 AT y4g2000vbx DOT googlegroups DOT com> <51e16608-a8ab-4cd8-a54d-67f3d40673ee AT m38g2000vbn DOT googlegroups DOT com> | |
NNTP-Posting-Host: | 65.13.115.246 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1314653819 23198 127.0.0.1 (29 Aug 2011 21:36:59 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Mon, 29 Aug 2011 21:36:59 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | fv14g2000vbb.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO |
User-Agent: | G2/1.0 |
X-Google-Web-Client: | true |
X-Google-Header-Order: | HUALESNKRC |
X-HTTP-UserAgent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0,gzip(gfe) |
Bytes: | 2277 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id p7TMF3Tf008483 |
Reply-To: | djgpp AT delorie DOT com |
Hi, On Aug 29, 3:23 pm, Georg <dos DOT DOT DOT AT googlemail DOT com> wrote: > > Is it possible to get DJGPP to return the current directory without > drive plus colon? Since the DJGPP site is down at the moment I cannot > look up how one retrieves the current directory using DJGPP at all. I don't know offhand. A quick naive check of crt0.h only shows a flag to remove drive from argv[0], which probably isn't what you want. I vaguely remember that Bash perhaps had some similar function to convert c:\blah to /dev/c/blah , but don't quote me on that. http://djgpp.cybermirror.org/beta/v2gnu/bsh205bsr3.zip In any case, you could probably??? do something dumb like: if blah[1] == ':' memmove(blah,&blah[2],sizeof(blah[]-2)); (Sorry if that's kinda wrong, but you get some ideas, I hope.)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |