R
Russell Shaw
Hi,
In gcc-3.4.4 i tried:
int main(int argc, char *argv[])
{
...
normalize_argv(&argc, &argv);
}
static void normalize_argv(int *pargc, char *(*pargv)[])
{
...
*pargv = calloc(1, sizeof(char*)); <--- error
}
I get an error:
error: invalid use of array with unspecified bounds
In gcc-3.4.4 i tried:
int main(int argc, char *argv[])
{
...
normalize_argv(&argc, &argv);
}
static void normalize_argv(int *pargc, char *(*pargv)[])
{
...
*pargv = calloc(1, sizeof(char*)); <--- error
}
I get an error:
error: invalid use of array with unspecified bounds