What is the type of main0
function?
I'm writing gtk3 library. However the g_application_run()
function needs argv
.
Of course, ATS language can use argv
on main0
function. But what is the type?
What is the type of main0
function?
I'm writing gtk3 library. However the g_application_run()
function needs argv
.
Of course, ATS language can use argv
on main0
function. But what is the type?
The following code is declared in prelude/basics_dyn.dats:
As you can see,
main0
is overloaded withmain_void_0
andmain_argc_argv_0
. The typeargv(n)
is essentially for a linear string array of sizen
that ends with the null value. Note that the null value is not counted as part of the size.