X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: argv[0] Date: Sun, 27 Nov 2011 17:50:04 -0500 Organization: Aioe.org NNTP Server Lines: 34 Message-ID: References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> NNTP-Posting-Host: qBjb0U1QTH77eiTXJSCpEw.user.speranza.aioe.org X-Complaints-To: abuse AT aioe DOT org X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.2001 X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Outlook Express 6.00.2800.2001 X-Priority: 3 X-MSMail-Priority: Normal Bytes: 1668 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Georg" wrote in message news:16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com... > Does argv[0] in main() always return the absolute path to the running > program including drive letter or are there situations where it does > not? > You change what argv[0] passes using some flags, if that's what you want. Or, do you just need to know if the path is always valid? complete? LFN vs. SFN? etc? Do these line help? __crt0_startup_flags http://www.delorie.com/djgpp/doc/libc/libc_124.html FAQ on command-line parameters http://www.delorie.com/djgpp/v2faq/faq16.html __crt0_glob_function http://www.delorie.com/djgpp/doc/libc/libc_121.html __crt0_setup_arguments http://www.delorie.com/djgpp/doc/libc/libc_123.html __crt0_load_environment_file http://www.delorie.com/djgpp/doc/libc/libc_122.html Rod Pemberton