#include #include #define MAX_BUF 1025 char obj[1025]; int scandct(); main(argc,argv) int argc; char *argv[]; { char *sp,suffix[10]; int j,np; strcpy(obj,OBJECT_ROOT); strcat(obj,argv[1]); sp=strchr(obj,'.'); if(sp) {strcpy(suffix,sp);*sp = 0;} else *suffix=0; j=scandct(".remoteobjects",obj); if(j){ sp=strchr(obj+2,'/'); *sp=0; printf("http:%s/jg/serv/%s%s\n",obj,sp+1,suffix); } else printf("Not in dictionary"); }