|
|
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:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.