|
|
BSD 4.3
#include <stdio.h>
getnum()
{
int c, n;
n = 0;
while ((c=getchar()) >= '0' && c <= '9')
n = n*10 + c - '0';
if (c == EOF)
return(-1);
return(n);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.