ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/12/04/11:45:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: RayeR <glaux AT centrum DOT cz>
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: <dca06357-dc1d-4ede-aa9e-510e15e499b5@z17g2000vbe.googlegroups.com>
References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com>
<jaueod$2t8$1 AT speranza DOT aioe DOT org> <9bf257a7-a0f8-43ba-a65f-36c6027f68cb AT r28g2000yqj DOT googlegroups DOT com>
<jb1ejh$hm8$1 AT speranza DOT aioe DOT org> <cc43d375-8e59-425d-a32e-b4ca200ae5cc AT 4g2000yqu DOT googlegroups DOT com>
<jbeegg$qp2$1 AT speranza DOT aioe DOT org>
NNTP-Posting-Host: 78.45.168.98
Mime-Version: 1.0
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...

- Raw text -


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