> for (i = 1; argv[i] != NULL; i++) { > assumes that an out-of-range i would mean argv[i]==NULL This is required by ANSI C, which is what Lua assumes. > which was not true in my case. Can you give more details? What platform and C compiler? --lhf