Annotation of researchv10dc/libI77/notused/ctest.c, revision 1.1.1.1

1.1       root        1: /*     @(#)ctest.c     1.2     */
                      2: #include "stdio.h"
                      3: char buf[256];
                      4: main()
                      5: {      int w,dp,sign;
                      6:        char *s, *fcvt(), *ecvt();
                      7:        double x;
                      8:        for(;;)
                      9:        {
                     10:                scanf("%d %lf",&w,&x);
                     11:                if(feof(stdin)) exit(0);
                     12:                s=fcvt(x,w,&dp,&sign);
                     13:                strcpy(buf,s);
                     14:                printf("%d,%f:\t%d\t%s\n",w,x,dp,buf);
                     15:                s=ecvt(x,w,&dp,&sign);
                     16:                printf("\t\t%d\t%s\n",dp,s);
                     17:        }
                     18: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.