http://d.puremagic.com/issues/show_bug.cgi?id=3120


Masahiro Nakagawa <repeate...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |repeate...@gmail.com


--- Comment #4 from Masahiro Nakagawa <repeate...@gmail.com> 2010-05-28 
13:36:35 PDT ---
This behavior is caused by dmc(I tested on Windows XP).

called.c
-----
#include <stdio.h>

int main(int argc, char* argv[])
{
    int i = 0;

    for (; i < argc; i++)
        printf("%s ", argv[i]);
}
-----

caller.c
-----
#include <stdlib.h>

int main()
{
    const char* const argv[] = {"a1", "a2", "a3", NULL};
    execv("called.exe", argv);
    return 0;
}
-----

dmc prints "called.exe a2 a3" but gcc prints "a1 a2 a3". I think expected
behavior is gcc result(not "called.exe arg1 arg2 arg3").

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to