X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Martin =?ISO-8859-1?Q?Str=C3=B6mberg?= Newsgroups: comp.os.msdos.djgpp Subject: Re: argv[0] Date: Mon, 5 Dec 2011 10:19:11 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 10 Message-ID: References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> <6719f201-2317-420d-bb38-3be66c90140b AT q9g2000yqe DOT googlegroups DOT com> <5059ad16-7787-49ef-8fb3-d9c21919a65b AT d10g2000vbf DOT googlegroups DOT com> <20af6883-aa05-4549-b820-ca0f7c80708d AT ca1g2000vbb DOT googlegroups DOT com> NNTP-Posting-Host: ftvAZcRvOze4hbePWaim7g.user.speranza.aioe.org X-Complaints-To: abuse AT aioe DOT org User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.9 (sun4u)) X-Notice: Filtered by postfilter v. 0.8.2 Bytes: 1353 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com RayeR wrote: [A lot about finding the the absolute path from argv[0].] Have you considered fun programs that start your program with execl("/path/to/your/program", "/try/to/find/it/again", "your_arg1", "your_arg2", NULL) ? -- MartinS