while (n <= argc) { RDF_ReadFile(argv[n++]);
while (n < argc) { char* name = argv[n++]; printf("Reading %s\n", name); RDF_ReadFile(name);
int main(int argc, char **argv){#endif    char localhost[256];    char *host;    RDF_Resource u;    int n = 2;    IIOPWebAppService_t obj;	//	// Normally we expect to see a hostname:port as	// our one and only argument.  If we are started by	// the OAD we will see an extra argument which should	// be ignored.	// The recommended registration with the OAD should 	// specify the hostname:port as an argument to the	// object provider.	//	// So try to ferrit out the hostname:port#ifndef WIN32	// Easier if we just have a normal main.	if (argc > 1){		if (argc == 1)			host = argv[1];		else if (*argv[1] != '-')			host = argv[1];#else	// Windows command line drops the program name	// that appears as argv[0].	// GetCommandLine can be used to retrieve the	// whole thing.        n = 1;	if (lpCmdLine && *lpCmdLine){		if (*lpCmdLine != '-'){			char *sep = strchr(lpCmdLine, ' ');			if (sep)				*sep = '\0';			host = lpCmdLine;		}#endif	}else{		gethostname(localhost, sizeof(localhost));		host = localhost;	}	//	// Pass in argc/argv if we have 'em.#ifndef WIN32	obj = WAIcreateWebAppService("OpenDir", Run, argc, argv);#else	obj = WAIcreateWebAppService("OpenDir", Run, 0, 0);#endif	WAIregisterService(obj, host);        RDF_Initialize();        printf("RDF Initialized!\n");		if (argc == 0) {			RDF_ReadFile("three_level");		} else {        while (n <= argc) {             RDF_ReadFile(argv[n++]);       }		}        printf("done");	WAIimplIsReady();    	return 0;}