Date: Tue, 7 Dec 1993 17:54:48 -0500 From: DJ Delorie To: flaregun AT strauss DOT udel DOT edu Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Symbolic links and functionality [ was: O_BINARY ] > If I am following this, you are saying this WILL work between programs > compiled with DJGPP. For example: > > /* DOIT.C */ > void main(int argc, char *argv[]) > { > printf("%s\n", argv[0]); > } > > would print DOIT.EXE when invoked from the DOS prompt, and DODAT.EXE when > it is execv'd in the DODAT.C program. (??) > > But, if you invoke, say, a program compiled with BCC (or other) > > execl("mybccprg.exe", "yomama.exe", "arg1", "another arg", 0); > > it would call mybccprg.exe with argv[0] = "mybccprg.exe", instead of > "yomama.exe" (??). Exactly, but only in 1.11.