Signature of main [was Sockets between D and C(++) app]

Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com> Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Wed Apr 2 05:14:20 PDT 2014


On Wednesday, 2 April 2014 at 08:55:23 UTC, Russel Winder wrote:
> The real signature of main in C/C++ is, I believe:
>
>         int main(int, char**, char**)

I believe in C it is:

int main(void)
int main(int,char**)

or implementation defined (e.g. the third env pointer in the main 
signature from unix)

But the actual entry point is system dependent and can be 
specified as a link option? On linux "_start" or something like 
that.


More information about the Digitalmars-d-learn mailing list