earlybrowserreborn

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/midaswww-2.1/uid2c.c @ HEAD  →  /midaswww-2.1/uid2c.c @ 1
/midaswww-2.1/uid2c.c
@@ -3,7 +3,7 @@
 
/* convert uid file to ascii file to use in c */
void converttoc ();
void getfilename();
char *getfilename();
 
main ( argc, agrv)
int argc;
@@ -37,10 +37,10 @@
char *filein;
{
FILE *outfp;
char fileout[100], name[100], tempf[100];
char fileout[100], name[100], *tempf;
int c, i;
 
getfilename(filein,tempf);
tempf = getfilename(filein);
strcpy(fileout, tempf);
strcpy(name, tempf);
strcat(fileout,".uic");
@@ -70,10 +70,12 @@
}
}
 
void getfilename (infile, outfile)
char *getfilename (infile)
char *infile;
char *outfile;
{
strcpy(outfile, infile);
*(outfile+strlen(outfile)-4) = '\0';
char filename[100];
 
strcpy(filename, infile);
filename[strlen(infile)-4] = '\0';
return filename;
}