Changeset 6d09c56 in git for Singular/tesths.cc
- Timestamp:
- Apr 28, 1997, 9:25:50 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6f2edcfe951d4496db2b2d3de66ffcd8e9035cb1
- Parents:
- 2c24d8d36711c0ab829b5daaa6b8a685f287e272
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tesths.cc
r2c24d8d r6d09c56 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1. 9 1997-04-28 17:47:16 SingularExp $ */4 /* $Id: tesths.cc,v 1.10 1997-04-28 19:25:50 obachman Exp $ */ 5 5 6 6 /* … … 64 64 if (errno != ERANGE && ptr != argv[2]) 65 65 #else 66 double mintime = 0 .0;66 double mintime = 0; 67 67 sscanf(argv[2],"%f", &mintime); 68 68 if (mintime != 0.0) … … 74 74 } 75 75 else 76 printf("Can not convert %s to a float\n", argv[2]);76 fprintf(stderr, "Can not convert %s to a float\n", argv[2]); 77 77 } 78 78 else 79 79 { 80 printf("Need a float to set mintime");80 fprintf(stderr, "Need a float to set mintime"); 81 81 } 82 82 } … … 89 89 #ifdef HAVE_STRTOL 90 90 long res = strtol(argv[2], &ptr, 10); 91 if (errno != ERANGE && ptr != argv[2] )91 if (errno != ERANGE && ptr != argv[2] && res > 0) 92 92 #else 93 93 long res = 0; 94 94 sscanf(argv[2],"%d", &res); 95 if (res !=0)95 if (res > 0) 96 96 #endif 97 97 { … … 101 101 } 102 102 else 103 printf("Can not convert %s to an integer\n", argv[2]);103 fprintf(stderr,"Can not convert %s to an integer > 0\n", argv[2]); 104 104 } 105 105 else 106 106 { 107 printf("Need an integer to set timer resolution");107 fprintf(stderr,"Need an integer to set timer resolution"); 108 108 } 109 109 } … … 119 119 case 'V': 120 120 case 'v':{ 121 printf("Singular %s %s(%d)%s %s\n",121 printf("Singular %s %s (%d) %s %s\n", 122 122 S_VERSION1,S_VERSION2, 123 123 VERSION_ID,__DATE__,__TIME__); … … 218 218 { 219 219 printf( 220 " Welcome to SINGULAR /\n"221 " A Computer Algebra System o<\n"222 " for Algebraic Geometry and Singularity Theory\\\n\n"220 " Welcome to SINGULAR /\n" 221 " A Computer Algebra System o<\n" 222 " for Commutative Algebra and Algebraic Geometry \\\n\n" 223 223 "by: G.-M. Greuel, G. Pfister, H. Schoenemann\n" 224 224 "Fachbereich Mathematik der Universitaet, D-67653 Kaiserslautern\n" 225 225 "contributions: O.Bachmann,W.Decker,H.Grassmann,B.Martin,M.Messollen,W.Neumann,\n" 226 226 "W.Pohl,T.Siebert,R.Stobbe e-mail: singular@mathematik.uni-kl.de\n"); 227 printf("%s %s",S_VERSION1,S_VERSION2); 228 printf(" (%d)\n\nPlease note: EVERY COMMAND MUST END WITH A SEMICOLON \";" 229 "\"\n(e.g. help; help command; help General syntax; help ring; quit;)\n\n", 230 VERSION_ID); 227 printf("%s %s (%d)",S_VERSION1,S_VERSION2, VERSION_ID); 228 printf("\n\nPlease note: EVERY COMMAND MUST END WITH A SEMICOLON \";" 229 "\"\n(e.g. help; help command; help General syntax; help ring; quit;)\n\n"); 231 230 } 232 231 else
Note: See TracChangeset
for help on using the changeset viewer.