Annotation of coherent/d/usr/src/examples/atol.c, revision 1.1

1.1     ! root        1: main()
        !             2: {
        !             3:        extern char *gets();
        !             4:        extern long atol();
        !             5:        char string[64];
        !             6:        
        !             7:        for (;;) {
        !             8:                printf("Enter numeric string: ");
        !             9:                if (gets(string))
        !            10:                        printf("%ld\n", atol(string));
        !            11:                else
        !            12:                        break;
        !            13:        }
        !            14:        putchar('\n');
        !            15: }
        !            16: 

unix.superglobalmegacorp.com

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