Changeset 3460fe in git
- Timestamp:
- Apr 11, 2006, 9:47:32 PM (17 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 0fc5364aa53658193bfb5a149fe38f92ff61bec5
- Parents:
- 0df49c2e400b9863057d102ed862846695394c7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/creat_top.cc
r0df49c r3460fe 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: creat_top.cc,v 1.2 2 2005-05-20 14:49:59 SingularExp $ */4 /* $Id: creat_top.cc,v 1.23 2006-04-11 19:47:32 anne Exp $ */ 5 5 /* 6 6 * ABSTRACT: lib parsing … … 130 130 fprintf(fp, " idhdl h;\n"); 131 131 fprintf(fp, " char * tempstr;\n"); 132 fprintf(fp, " char * tailstr;\n"); 132 133 fprintf(fp, " FILE * binfp; \n"); 133 134 fprintf(fp, " int ret;\n"); 134 135 fprintf(fp, " struct stat sb; \n\n"); 135 136 fprintf(fp, " tempstr = (char *)omAlloc(strlen(currPack->libname)+5);\n"); 136 fprintf(fp, " memset(tempstr,0,strlen(currPack->libname)+1);\n"); 137 fprintf(fp, " memcpy(tempstr,currPack->libname,strlen(currPack->libname));\n"); 138 fprintf(fp, " memcpy(tempstr+strlen(currPack->libname)-3,\".bin\",4);\n"); 137 fprintf(fp, " memset(tempstr,0,strlen(currPack->libname)+5);\n"); 138 fprintf(fp, " tailstr = strchr(currPack->libname,'.');\n"); 139 fprintf(fp, " memcpy(tempstr,currPack->libname,strlen(currPack->libname)-strlen(tailstr));\n"); 140 fprintf(fp, " memcpy(tempstr+strlen(tempstr),\".bin\",4);\n"); 139 141 fprintf(fp, " ret=stat(tempstr,&sb);\n"); 140 142 fprintf(fp, " if(ret==0) { \n");
Note: See TracChangeset
for help on using the changeset viewer.