strcpy(argv0, argv[0]);
snprintf(argv0, _MAX_PATH, "%s", argv[0]);
main(int argc, char *argv[], char *env[]){   char                argv0[_MAX_PATH];   int                 i;   strcpy(argv0, argv[0]);   /* Linux stores the name of the program in argv[0], but not the path.    * To adjust this, I store a string with the path in argv[0]. To do    * so, I try to get the current path with getcwd(), and if that fails    * I search for the PWD= setting in the environment.    */   if (NULL != getcwd(argv0, _MAX_PATH))     {	i = strlen(argv0);	snprintf(argv0 + i, _MAX_PATH - i, "/%s", argv[0]);     }   else     {	char               *pwd = getenv("PWD");	if (pwd != NULL)	   snprintf(argv0, _MAX_PATH, "%s/%s", pwd, argv[0]);     }				/* if */   argv[0] = argv0;		/* set location to new first parameter */   return sc_compile(argc, argv);}