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

1.1     ! root        1: #include <stdio.h>
        !             2: main()
        !             3: {
        !             4:        extern char *gets();
        !             5:        extern int atoi();
        !             6:        char string[64];
        !             7:        for (;;) {
        !             8:                printf("Enter numeric string: ");
        !             9:                        if (NULL != gets(string))
        !            10:                                printf("%d\n", atoi(string));
        !            11:                        else
        !            12:                                break;
        !            13:        }
        !            14:        putchar('\n');
        !            15: }

unix.superglobalmegacorp.com

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