Re: Expanding the argv array: Try: argv = (char **) realloc (argv, newsize * sizeof (char *)) /* newsize is the size of your expanded argv array */ for (ctr = OLDargc; ctr < newsize; ctr++) argv[ctr] = (char *) 0; /* now append arguments to your heart's content.. */ /* NO COMMENTS ABOUT PASCAL'ish CODING!!! :-) */ -- Shankar.