Mail Archives: djgpp/1993/12/07/18:09:11
> 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.
- Raw text -