Mail Archives: djgpp/1998/05/08/11:15:35
Gerhard Gruber wrote:
> No memory allocated for lin and pin.
>
> before you call gets() you have to have some line like
> if((lin = malloc(<len>)) == NULL)
> {
> fprintf(stderr, "not enough memory\n");
> exit(1);
> }
Or how about just declare them as a static array?
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm:+37.20.07/-121.53.38
\
"Even if opponents are numerous, / they can be made not to fight."
/ Sun Tzu
- Raw text -