home *** CD-ROM | disk | FTP | other *** search
- From: wjh12!pixel!pixutl!chris
- Subject: Re: v06i003: new calls; shows function call flow (calls.new)
- I would like to suggest a minor change to your 'calls' program. It does
- not accept stdin unless you specify '-' as an argument. This can easily
- be fixed by adding an extern variable:
- int anyproc;
-
- then, inside of process(), do:
- anyproc++;
-
- and in main(), after the 'while (EOF != getarg (argc, argv)) {' loop, add:
- if (anyproc == 0)
- dostdin();
-
- Chris
-