1: #include <stdio.h>
   2: 
   3: getnum()
   4: {
   5:     int c, n;
   6: 
   7:     n = 0;
   8:     while ((c=getchar()) >= '0' && c <= '9')
   9:         n = n*10 + c - '0';
  10:     if (c == EOF)
  11:         return(-1);
  12:     return(n);
  13: }

Defined functions

getnum defined in line 3; never used
Last modified: 1983-04-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 589
Valid CSS Valid XHTML 1.0 Strict