X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: Re: argv[0] Date: Sun, 4 Dec 2011 08:16:43 -0800 (PST) Organization: http://groups.google.com Lines: 6 Message-ID: References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> <9bf257a7-a0f8-43ba-a65f-36c6027f68cb AT r28g2000yqj DOT googlegroups DOT com> NNTP-Posting-Host: 78.45.168.98 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1323016304 27525 127.0.0.1 (4 Dec 2011 16:31:44 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 4 Dec 2011 16:31:44 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: z17g2000vbe.googlegroups.com; posting-host=78.45.168.98; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14,gzip(gfe) Bytes: 1777 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com My experience with djgpp 2.04 is that argv[0] always returns absulte path with normal slashes "/" when launched from command line or some file manager under DOS or Windows. But it's not C standard, e.g. mingw32 program under windows returned only filename without path. I think there's no portable way to get it but thet mentioned messing with PSP seems like dirty hack...