Changeset 6d09c56 in git for Singular/tesths.cc


Ignore:
Timestamp:
Apr 28, 1997, 9:25:50 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6f2edcfe951d4496db2b2d3de66ffcd8e9035cb1
Parents:
2c24d8d36711c0ab829b5daaa6b8a685f287e272
Message:
Mon Apr 28 21:00:07 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* Added README, INSTALL, COPYING file to distribution

	* tesths.cc (main): slightly changed Singular banner; fixed
	  display of version number


git-svn-id: file:///usr/local/Singular/svn/trunk@204 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    r2c24d8d r6d09c56  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.9 1997-04-28 17:47:16 Singular Exp $ */
     4/* $Id: tesths.cc,v 1.10 1997-04-28 19:25:50 obachman Exp $ */
    55
    66/*
     
    6464          if (errno != ERANGE && ptr != argv[2])
    6565#else
    66           double mintime = 0.0;
     66          double mintime = 0;
    6767          sscanf(argv[2],"%f", &mintime);
    6868          if (mintime != 0.0)
     
    7474          }
    7575          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]);
    7777        }
    7878        else
    7979        {
    80           printf("Need a float to set mintime");
     80          fprintf(stderr, "Need a float to set mintime");
    8181        }
    8282      }
     
    8989#ifdef HAVE_STRTOL       
    9090        long res = strtol(argv[2], &ptr, 10);
    91         if (errno != ERANGE && ptr != argv[2])
     91        if (errno != ERANGE && ptr != argv[2] && res > 0)
    9292#else
    9393        long res = 0;
    9494        sscanf(argv[2],"%d", &res);
    95         if (res != 0)
     95        if (res > 0)
    9696#endif         
    9797        {
     
    101101        }
    102102        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]);
    104104      }
    105105      else
    106106      {
    107         printf("Need an integer to set timer resolution");
     107        fprintf(stderr,"Need an integer to set timer resolution");
    108108      }
    109109    }
     
    119119            case 'V':
    120120            case 'v':{
    121               printf("Singular %s %s(%d) %s %s\n",
     121              printf("Singular %s  %s  (%d) %s %s\n",
    122122                     S_VERSION1,S_VERSION2,
    123123                     VERSION_ID,__DATE__,__TIME__);
     
    218218  {
    219219    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"
    223223"by: G.-M. Greuel, G. Pfister, H. Schoenemann\n"
    224224"Fachbereich Mathematik der Universitaet, D-67653 Kaiserslautern\n"
    225225"contributions: O.Bachmann,W.Decker,H.Grassmann,B.Martin,M.Messollen,W.Neumann,\n"
    226226"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");
    231230  }
    232231  else
Note: See TracChangeset for help on using the changeset viewer.