Aman wrote:
Another version, maybe non standard ,
It is non-standard
works on both with unix/gcc4.0.2
and
windows/VC7
<snip>
int main(int argc, char* argv[], char* envp[])
The only signatures required to be supported for main are
int main()
int main(int argc, char* argv[])
The implementation is allowed to provide
int main( /* anything else it likes */ )
as an extension.
<OT>
Of course, the signature you suggested could be a widely enough
supported extension that it is useful to the OP, given that no standard
solution exists.
</OT>
Gavin Deane